Ticket #12505: 12505.diff

File 12505.diff, 806 bytes (added by Tim Graham, 15 years ago)
  • docs/topics/forms/formsets.txt

     
    3030    <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>
    3131
    3232As 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
     34display is controlled using the ``extra`` parameter.  The following example
     35will display two blank forms::
    3536
    3637    >>> ArticleFormSet = formset_factory(ArticleForm, extra=2)
    3738
Back to Top