summaryrefslogtreecommitdiff
path: root/docs/topics/forms/modelforms.txt
diff options
context:
space:
mode:
authormelipone <mark.gensler@gmail.com>2018-09-06 12:00:45 +0100
committerTim Graham <timograham@gmail.com>2018-09-10 15:27:42 -0400
commit28dac56aed1c8c9923b52a1ac3606996f9820b30 (patch)
tree5a56bb790ffd61e831f5646e5eb603a490d8de64 /docs/topics/forms/modelforms.txt
parent34d6bceec46c5d4234c156ed682573d2e5de474a (diff)
Fixed #16995 -- Clarified interaction of initial and extra with model formsets.
Diffstat (limited to 'docs/topics/forms/modelforms.txt')
-rw-r--r--docs/topics/forms/modelforms.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt
index 270b88ff67..0bd7833967 100644
--- a/docs/topics/forms/modelforms.txt
+++ b/docs/topics/forms/modelforms.txt
@@ -877,8 +877,10 @@ 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. If the extra forms with initial data
-aren't changed by the user, they won't be validated or saved.
+attached to an existing model instance. If the length of ``initial`` exceeds
+the number of extra forms, the excess initial data is ignored. 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: