diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-07-29 09:40:22 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-07-29 09:40:22 +0000 |
| commit | 8ac23178ad787f35e4e1f620ce417bc73b98a149 (patch) | |
| tree | 4488a9e38a12a78f97ed49507a897d06786d8a1a | |
| parent | fab483971cbef9f03d1c3270851db6cd0fdccc45 (diff) | |
Fixed #16467 -- Corrected formset code example. Thanks, teraom.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -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 7ca173d14b..a9fd3dbc01 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() |
