Ticket #12505: 12505.diff
File 12505.diff, 806 bytes (added by , 15 years ago) |
---|
-
docs/topics/forms/formsets.txt
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 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:: 33 ``formset_factory`` defines one "extra" form. The number of blank forms to 34 display is controlled using the ``extra`` parameter. The following example 35 will display two blank forms:: 35 36 36 37 >>> ArticleFormSet = formset_factory(ArticleForm, extra=2) 37 38