Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed #12505 -- Clarified the use of the extra argument in fo…

…rmsets. Thanks to Andreas for the report, and timo for the draft patch.

Backport of r13218 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9ca0a330292fd2a29f166d1b87b78ff056b414f2 1 parent c51284f
Russell Keith-Magee authored May 10, 2010

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  docs/topics/forms/formsets.txt
7  docs/topics/forms/formsets.txt
@@ -29,9 +29,10 @@ would with a regular form::
29 29
     <tr><th><label for="id_form-0-title">Title:</label></th><td><input type="text" name="form-0-title" id="id_form-0-title" /></td></tr>
30 30
     <tr><th><label for="id_form-0-pub_date">Pub date:</label></th><td><input type="text" name="form-0-pub_date" id="id_form-0-pub_date" /></td></tr>
31 31
 
32  
-As you can see it only displayed one form. This is because by default the
33  
-``formset_factory`` defines one extra form. This can be controlled with the
34  
-``extra`` parameter::
  32
+As you can see it only displayed one empty form. The number of empty forms
  33
+that is displayed is controlled by the ``extra`` parameter. By default,
  34
+``formset_factory`` defines one extra form; the following example will
  35
+display two blank forms::
35 36
 
36 37
     >>> ArticleFormSet = formset_factory(ArticleForm, extra=2)
37 38
 

0 notes on commit 9ca0a33

Please sign in to comment.
Something went wrong with that request. Please try again.