#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 -------------------------------------+------------------------------------- Changes (by felixxm):
* status: new => closed * resolution: => invalid * version: 3.0 => master * component: Uncategorized => Database layer (models, ORM) Comment: Thanks for this ticket, however I cannot reproduce this issue, everything works for me with two simple models (I used `OneToOneField` like in your models): {{{ class A(models.Model): pass class B(models.Model): a = models.OneToOneField(A, primary_key=True, on_delete=models.CASCADE, related_name='other_name') }}} it's hard to tell why your tests failed because models are quite complicated. Please use one of support channel. Closing per TicketClosingReasons/UseSupportChannels. -- Ticket URL: <https://code.djangoproject.com/ticket/31600#comment:4> 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.b3fa422db9007a51b82f2252d7c022a4%40djangoproject.com.