Changes between Version 1 and Version 3 of Ticket #34796


Ignore:
Timestamp:
Aug 24, 2023, 9:59:32 AM (15 months ago)
Author:
Stephen Finucane
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34796

    • Property Summary Deleting child table does not delete columns in parent table when using multi-table inheritanceDeleting child table does not delete rows in parent table when using multi-table inheritance
  • Ticket #34796 – Description

    v1 v3  
     1If 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
    13I 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`.
    24
Back to Top