Changes between Version 1 and Version 3 of Ticket #34796
- Timestamp:
- Aug 24, 2023, 9:59:32 AM (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34796
- Property Summary Deleting child table does not delete columns in parent table when using multi-table inheritance → Deleting child table does not delete rows in parent table when using multi-table inheritance
-
Ticket #34796 – Description
v1 v3 1 If you have a child model that depends on a parent model via multi-table inheritance, then deleting the child will not delete rows in the parent model's table. 2 1 3 I am aware that we don't use database-level cascades (ticket:21961) but I expected this to be implemented by Django in Python, given the docs (https://docs.djangoproject.com/en/4.2/topics/db/models/#multi-table-inheritance) say that the automatically-created `OneToOneField` on the child model will have `on_delete=models.CASCADE`. 2 4