Kaydet (Commit) 6de3a1e2 authored tarafından Tim Graham's avatar Tim Graham

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

üst 3e132406
...@@ -861,7 +861,8 @@ As with regular formsets, it's possible to :ref:`specify initial data ...@@ -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 parameter when instantiating the model formset class returned by
:func:`~django.forms.models.modelformset_factory`. However, with model :func:`~django.forms.models.modelformset_factory`. However, with model
formsets, the initial values only apply to extra forms, those that aren't 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: .. _saving-objects-in-the-formset:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment