Skip to content
Browse files

Fixed #11735 -- Corrected an example of FormSet subclassing. Thanks t…

…o claudep for the report.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6ac4aba commit 50e3aa03e66fb7b7b7c6f5533efd961742b81853 @freakboy3742 freakboy3742 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/topics/forms/modelforms.txt
2 docs/topics/forms/modelforms.txt
@@ -595,8 +595,8 @@ Alternatively, you can create a subclass that sets ``self.queryset`` in
class BaseAuthorFormSet(BaseModelFormSet):
def __init__(self, *args, **kwargs):
- self.queryset = Author.objects.filter(name__startswith='O')
super(BaseAuthorFormSet, self).__init__(*args, **kwargs)
+ self.queryset = Author.objects.filter(name__startswith='O')
Then, pass your ``BaseAuthorFormSet`` class to the factory function::

0 comments on commit 50e3aa0

Please sign in to comment.
Something went wrong with that request. Please try again.