summaryrefslogtreecommitdiff
path: root/docs/topics/forms/formsets.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/forms/formsets.txt')
-rw-r--r--docs/topics/forms/formsets.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt
index 585a42469f..d4441ce138 100644
--- a/docs/topics/forms/formsets.txt
+++ b/docs/topics/forms/formsets.txt
@@ -274,12 +274,13 @@ provide this management data, the formset will be invalid:
>>> formset.is_valid()
False
-It is used to keep track of how many form instances are being displayed. If
-you are adding new forms via JavaScript, you should increment the count fields
-in this form as well. On the other hand, if you are using JavaScript to allow
+It is used to keep track of how many form instances are being displayed. If you
+are adding new forms via JavaScript, you should increment the count fields in
+this form as well. On the other hand, if you are using JavaScript to allow
deletion of existing objects, then you need to ensure the ones being removed
are properly marked for deletion by including ``form-#-DELETE`` in the ``POST``
-data. It is expected that all forms are present in the ``POST`` data regardless.
+data. It is expected that all forms are present in the ``POST`` data
+regardless.
The management form is available as an attribute of the formset
itself. When rendering a formset in a template, you can include all