Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…o claudep for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 50e3aa03e66fb7b7b7c6f5533efd961742b81853 1 parent 6ac4aba
Russell Keith-Magee authored August 07, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  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
595 595
 
596 596
     class BaseAuthorFormSet(BaseModelFormSet):
597 597
         def __init__(self, *args, **kwargs):
598  
-            self.queryset = Author.objects.filter(name__startswith='O')
599 598
             super(BaseAuthorFormSet, self).__init__(*args, **kwargs)
  599
+            self.queryset = Author.objects.filter(name__startswith='O')
600 600
 
601 601
 Then, pass your ``BaseAuthorFormSet`` class to the factory function::
602 602
 

0 notes on commit 50e3aa0

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