Author: gabrielhurley
Date: 2011-08-18 14:47:04 -0700 (Thu, 18 Aug 2011)
New Revision: 16623

Modified:
   django/trunk/docs/topics/forms/formsets.txt
Log:
Fixed #16467 -- Restored a previously correct example which was broken in 
[16564]. Thanks to dmclain for pointing out that the original example was 
correct.


Modified: django/trunk/docs/topics/forms/formsets.txt
===================================================================
--- django/trunk/docs/topics/forms/formsets.txt 2011-08-17 14:12:25 UTC (rev 
16622)
+++ django/trunk/docs/topics/forms/formsets.txt 2011-08-18 21:47:04 UTC (rev 
16623)
@@ -59,10 +59,10 @@
 example::
 
     >>> ArticleFormSet = formset_factory(ArticleForm, extra=2)
-    >>> formset = ArticleFormSet(initial={
-    ...      'title': u'Django is now open source',
-    ...      'pub_date': datetime.date.today(),
-    ... })
+    >>> formset = ArticleFormSet(initial=[
+    ...     {'title': u'Django is now open source',
+    ...      'pub_date': datetime.date.today(),}
+    ... ])
 
     >>> for form in formset:
     ...     print form.as_table()

-- 
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.

Reply via email to