Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.4.x] Fixed #21594 -- Added note about model formsets deleting obje…

…cts.

This behavior has been fixed in 65e03a4. refs #10284.

Backport of de1d5d5 from stable/1.6.x.
  • Loading branch information...
commit 474e7dd6d08105fce66d7f62670a6c120c0b1198 1 parent 2d4f399
@benspaulding benspaulding authored charettes committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/topics/forms/modelforms.txt
View
6 docs/topics/forms/modelforms.txt
@@ -668,6 +668,12 @@ to the database. If your formset contains a ``ManyToManyField``, you'll also
need to call ``formset.save_m2m()`` to ensure the many-to-many relationships
are saved properly.
+.. note::
+
+ While calling ``formset.save(commit=False)`` does not save new or changed
+ objects to the database, it *does* delete objects that have been marked for
+ deletion. This behavior will be corrected in Django 1.7.
+
.. _model-formsets-max-num:
Limiting the number of editable objects
Please sign in to comment.
Something went wrong with that request. Please try again.