#22998: GenericRelation cascade deletion doesn't fire pre_delete signals
-------------------------------+--------------------
Reporter: gwahl@… | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
I have three models:
Node (gfk to)-> Content (fk to)-> Related
Deleting a Related cascades to delete the Content which cascades to delete
the Node (because Content has a GenericRelation). This is the expected
behavior. However, in Django 1.5 pre_delete would be trigger on Node
before deleting it. In 1.6, this is no longer the case.
I've written a test case here:
https://github.com/fusionbox/django/tree/generic_relation_cascade_signal.
The test passes on 1.5 and fails on 1.6, 1.7, and master.
This is a regression introduced in
97774429aeb54df4c09895c07cd1b09e70201f7d for #19385.
This may be related to #22594 -- both involve fast_delete incorrectly
returning True.
--
Ticket URL: <https://code.djangoproject.com/ticket/22998>
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/062.1f863b09d21598e0a0fc759d89396dfa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.