mirror of https://github.com/django/django.git
[1.5.x] Fixed #21594 -- Added note about model formsets deleting objects.
This behavior has been fixed in65e03a424e
. refs #10284. Backport ofde1d5d5df5
from stable/1.6.x.
This commit is contained in:
parent
deeed42253
commit
a53820b1b1
|
@ -711,6 +711,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
|
||||
|
|
Loading…
Reference in New Issue