Commit bdd1409e authored by Gabriel Hurley's avatar Gabriel Hurley
Browse files

Fixed #16467 -- Restored a previously correct example which was broken in...

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
parent 7d782e51
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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()