Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16467 -- Restored a previously correct example which was broke…

…n in [16564]. Thanks to dmclain for pointing out that the original example was correct.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bdd1409eea7ea86a9b2a645dfb47a6b273a43af4 1 parent 7d782e5
authored August 18, 2011

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  docs/topics/forms/formsets.txt
8  docs/topics/forms/formsets.txt
@@ -59,10 +59,10 @@ number of forms it generates from the initial data. Lets take a look at an
59 59
 example::
60 60
 
61 61
     >>> ArticleFormSet = formset_factory(ArticleForm, extra=2)
62  
-    >>> formset = ArticleFormSet(initial={
63  
-    ...      'title': u'Django is now open source',
64  
-    ...      'pub_date': datetime.date.today(),
65  
-    ... })
  62
+    >>> formset = ArticleFormSet(initial=[
  63
+    ...     {'title': u'Django is now open source',
  64
+    ...      'pub_date': datetime.date.today(),}
  65
+    ... ])
66 66
 
67 67
     >>> for form in formset:
68 68
     ...     print form.as_table()

0 notes on commit bdd1409

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