Author: russellm
Date: 2010-08-07 10:01:17 -0500 (Sat, 07 Aug 2010)
New Revision: 13560
Modified:
django/branches/releases/1.2.X/docs/topics/forms/modelforms.txt
Log:
[1.2.X] Fixed #11735 -- Corrected an example of FormSet subclassing. Thanks to
claudep for the report.
Backport of r13553 from trunk.
Modified: django/branches/releases/1.2.X/docs/topics/forms/modelforms.txt
===================================================================
--- django/branches/releases/1.2.X/docs/topics/forms/modelforms.txt
2010-08-07 15:00:54 UTC (rev 13559)
+++ django/branches/releases/1.2.X/docs/topics/forms/modelforms.txt
2010-08-07 15:01:17 UTC (rev 13560)
@@ -595,8 +595,8 @@
class BaseAuthorFormSet(BaseModelFormSet):
def __init__(self, *args, **kwargs):
+ super(BaseAuthorFormSet, self).__init__(*args, **kwargs)
self.queryset = Author.objects.filter(name__startswith='O')
- super(BaseAuthorFormSet, self).__init__(*args, **kwargs)
Then, pass your ``BaseAuthorFormSet`` class to the factory function::
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.