Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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...
commit 50e3aa03e66fb7b7b7c6f5533efd961742b81853 1 parent 6ac4aba
@freakboy3742 freakboy3742 authored
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.