diff options
| author | Gabriel Hurley <gabehr@gmail.com> | 2011-08-18 21:47:04 +0000 |
|---|---|---|
| committer | Gabriel Hurley <gabehr@gmail.com> | 2011-08-18 21:47:04 +0000 |
| commit | bdd1409eea7ea86a9b2a645dfb47a6b273a43af4 (patch) | |
| tree | 1c9a80bb3c094450a18708b68ef371c202debe75 /docs/topics/forms | |
| parent | 7d782e51c1531683c7719a4d3dcf9b3ce38ebfbd (diff) | |
Fixed #16467 -- Restored a previously correct example which was broken 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
Diffstat (limited to 'docs/topics/forms')
| -rw-r--r-- | docs/topics/forms/formsets.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt index a9fd3dbc01..a72fac947a 100644 --- a/docs/topics/forms/formsets.txt +++ b/docs/topics/forms/formsets.txt @@ -59,10 +59,10 @@ number of forms it generates from the initial data. Lets take a look at an 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() |
