Skip to content

Commit

Permalink
Fixed #16467 -- Corrected formset code example. Thanks, teraom.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jezdez committed Jul 29, 2011
1 parent fab4839 commit 8ac2317
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/topics/forms/formsets.txt
Expand Up @@ -59,10 +59,10 @@ number of forms it generates from the initial data. Lets take a look at an
example:: example::


>>> ArticleFormSet = formset_factory(ArticleForm, extra=2) >>> ArticleFormSet = formset_factory(ArticleForm, extra=2)
>>> formset = ArticleFormSet(initial=[ >>> formset = ArticleFormSet(initial={
... {'title': u'Django is now open source', ... 'title': u'Django is now open source',
... 'pub_date': datetime.date.today()}, ... 'pub_date': datetime.date.today(),
... ]) ... })


>>> for form in formset: >>> for form in formset:
... print form.as_table() ... print form.as_table()
Expand Down

0 comments on commit 8ac2317

Please sign in to comment.