formsets.txt 474 B

12345678910111213141516
  1. ====================
  2. Formset Functions
  3. ====================
  4. .. module:: django.forms.formsets
  5. :synopsis: Django's functions for building formsets.
  6. .. function:: formset_factory(form, formset=BaseFormSet, extra=1, can_order=False, can_delete=False, max_num=None, validate_max=False)
  7. Returns a ``FormSet`` class for the given ``form`` class.
  8. See :ref:`formsets` for example usage.
  9. .. versionchanged:: 1.6
  10. The ``validate_max`` parameter was added.