--
Ticket URL: <https://code.djangoproject.com/ticket/33629>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
* component: Uncategorized => Database layer (models, ORM)
* type: Uncategorized => Bug
Comment:
[https://docs.djangoproject.com/en/4.0/ref/models/fields/#django.db.models.CASCADE
As documented], "Django emulates the behavior of the SQL constraint ON
DELETE CASCADE and also deletes the object containing the ForeignKey."
(Django doesn't create an `ON DELETE CASCADE` constraint.)
I'm not sure what you mean by "and does not generate on UPDATE." If you
believe there's a bug in Django, please give a more detailed explanation.
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/33629#comment:1>