#10284: ModelFormSet - objects are deleted even if commit=False
------------------------------------+------------------------------------
     Reporter:  laureline.guerin@…  |                    Owner:  Wedg
         Type:  Bug                 |                   Status:  assigned
    Component:  Forms               |                  Version:  master
     Severity:  Normal              |               Resolution:
     Keywords:                      |             Triage Stage:  Accepted
    Has patch:  1                   |      Needs documentation:  0
  Needs tests:  0                   |  Patch needs improvement:  0
Easy pickings:  0                   |                    UI/UX:  0
------------------------------------+------------------------------------

Comment (by timo):

 Duplicate of #17988 in which @akaariai suggests changing the current
 behavior would be backwards-incompatible (of course, all bug fixes are --
 I guess it's whether or not you consider the current design a bug or a
 feature). This is what Jacob meant by "related objects will never get
 deleted by anyone" -- the pull request solves this by a documentation
 update which informs users they must handle `formset.deleted_objects`
 manually.

 IMO, the justification for changing the behavior is that it's unexpected
 that anything DB related happens with `commit=False`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/10284#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/092.cae7c89b5bea7bc15a2aa931e53fdc70%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to