diff options
| author | Tim Graham <timograham@gmail.com> | 2013-03-31 04:34:28 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-03-31 04:34:28 -0400 |
| commit | 4a1d425cfe88983b34b1ecd3ad2aa9993af84467 (patch) | |
| tree | ddd5c49722f799ecf75d2c236bf67e34f1ac20c6 /docs | |
| parent | ac4d82b94a700214ebb13bcdcbbdd4fd9bdefc0f (diff) | |
Fixed #8649 - Documented a caveat about dynamically adjusting formsets.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/forms/formsets.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt index f0a7668e0d..c9bfda8d4f 100644 --- a/docs/topics/forms/formsets.txt +++ b/docs/topics/forms/formsets.txt @@ -193,7 +193,10 @@ this management data, an exception will be raised:: 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. +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. The management form is available as an attribute of the formset itself. When rendering a formset in a template, you can include all |
