Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 2fd61285d109a04bf22d1822e834cbb7bcf4239f 1 parent 490672f
Tim Graham timgraham authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/topics/forms/formsets.txt
6 docs/topics/forms/formsets.txt
View
@@ -58,7 +58,7 @@ example::
>>> import datetime
>>> from django.forms.formsets import formset_factory
- >>> from myapp.forms imporrt ArticleForm
+ >>> from myapp.forms import ArticleForm
>>> ArticleFormSet = formset_factory(ArticleForm, extra=2)
>>> formset = ArticleFormSet(initial=[
... {'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::
>>> 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)
>>> formset = ArticleFormSet()
>>> 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::
>>> from django.forms.formsets import formset_factory
- >>> from myapp.forms imporrt ArticleForm
+ >>> from myapp.forms import ArticleForm
>>> ArticleFormSet = formset_factory(ArticleForm)
>>> data = {
... 'form-TOTAL_FORMS': u'1',
Please sign in to comment.
Something went wrong with that request. Please try again.