summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-10-10 15:36:21 -0400
committerTim Graham <timograham@gmail.com>2016-10-10 15:36:33 -0400
commit87595c92f31fd91ed0c17fe2933ab0b5b62dc4c1 (patch)
treec964b93b7d5d063f45094ae2b2a304f2d88f10ff /docs
parent1c47c7e6f17300fda23f3003fde655615e1e83f9 (diff)
[1.10.x] Doc'd the need to provide initial for formset submissions.
Backport of 80f5a4d87a6068efe7c04bd9436f0293fbbb4db3 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/formsets.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt
index 201e021167..92994a0a44 100644
--- a/docs/topics/forms/formsets.txt
+++ b/docs/topics/forms/formsets.txt
@@ -80,6 +80,11 @@ There are now a total of three forms showing above. One for the initial data
that was passed in and two extra forms. Also note that we are passing in a
list of dictionaries as the initial data.
+If you use an ``initial`` for displaying a formset, you should pass the same
+``initial`` when processing that formset's submission so that the formset can
+detect which forms were changed by the user. For example, you might have
+something like: ``ArticleFormSet(request.POST, initial=[...])``.
+
.. seealso::
:ref:`Creating formsets from models with model formsets <model-formsets>`.