Commit 7c7d29ad authored by Tim Graham's avatar Tim Graham
Browse files

[1.7.x] Fixed #24541 -- Clarified ModelFormSet's handling of initial data.

Backport of 6de3a1e2 from master
parent be865fe6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -874,7 +874,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: