Code

Ticket #12505: 12505.diff

File 12505.diff, 806 bytes (added by timo, 4 years ago)
Line 
1Index: docs/topics/forms/formsets.txt
2===================================================================
3--- docs/topics/forms/formsets.txt      (revision 12909)
4+++ docs/topics/forms/formsets.txt      (working copy)
5@@ -30,8 +30,9 @@
6     <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>
7 
8 As you can see it only displayed one form. This is because by default the
9-``formset_factory`` defines one extra form. This can be controlled with the
10-``extra`` parameter::
11+``formset_factory`` defines one "extra" form. The number of blank forms to
12+display is controlled using the ``extra`` parameter.  The following example
13+will display two blank forms::
14 
15     >>> ArticleFormSet = formset_factory(ArticleForm, extra=2)
16