Fixed #20471 - Typos in topics/forms/formsets.txt

This commit is contained in:
Tim Graham 2013-05-20 13:56:19 -04:00
parent 490672f057
commit 2fd61285d1
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ example::
>>> import datetime >>> import datetime
>>> from django.forms.formsets import formset_factory >>> from django.forms.formsets import formset_factory
>>> from myapp.forms imporrt ArticleForm >>> from myapp.forms import ArticleForm
>>> 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',
@ -92,7 +92,7 @@ gives you the ability to limit the maximum number of empty forms the formset
will display:: will display::
>>> from django.forms.formsets import formset_factory >>> from django.forms.formsets import formset_factory
>>> from myapp.forms imporrt ArticleForm >>> from myapp.forms import ArticleForm
>>> ArticleFormSet = formset_factory(ArticleForm, extra=2, max_num=1) >>> ArticleFormSet = formset_factory(ArticleForm, extra=2, max_num=1)
>>> formset = ArticleFormSet() >>> formset = ArticleFormSet()
>>> for form in formset: >>> for form in formset:
@ -130,7 +130,7 @@ an ``is_valid`` method on the formset to provide a convenient way to validate
all forms in the formset:: all forms in the formset::
>>> from django.forms.formsets import formset_factory >>> from django.forms.formsets import formset_factory
>>> from myapp.forms imporrt ArticleForm >>> from myapp.forms import ArticleForm
>>> ArticleFormSet = formset_factory(ArticleForm) >>> ArticleFormSet = formset_factory(ArticleForm)
>>> data = { >>> data = {
... 'form-TOTAL_FORMS': u'1', ... 'form-TOTAL_FORMS': u'1',