Fixed #24541 -- Clarified ModelFormSet's handling of initial data.

This commit is contained in:
Tim Graham 2015-03-28 08:54:59 -04:00
parent 3e132406e3
commit 6de3a1e2c3
1 changed files with 2 additions and 1 deletions

View File

@ -861,7 +861,8 @@ As with regular formsets, it's possible to :ref:`specify initial data
parameter when instantiating the model formset class returned by
:func:`~django.forms.models.modelformset_factory`. However, with model
formsets, the initial values only apply to extra forms, those that aren't
attached to an existing model instance.
attached to an existing model instance. If the extra forms with initial data
aren't changed by the user, they won't be validated or saved.
.. _saving-objects-in-the-formset: