#31600: Calling .delete() on a queryset doesn't delete related objects.
-------------------------------------+-------------------------------------
     Reporter:  אורי                 |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by אורי):

 Eventually I decided to disable the .delete() method in all querysets in
 model managers in my project and I don't allow to delete objects from
 querysets any more. Any delete command should be executed on the object
 itself. [ [https://github.com/speedy-net/speedy-
 net/commit/e92c5679e2d98090e88f0595035ab96b6c1a5b24 commit] ]

 It would be nice to have a settings in Django that does this - disable the
 .delete() method in all querysets.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31600#comment:5>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.0a5d25c6c3251539fac49919df0be3d2%40djangoproject.com.

Reply via email to