In contrast to that, if you remove rows from the Child table (while
existing), the corresponding rows in the Parent table are deleted too.
This bug happens both on forward as well as reversed migrations.
Sample project:
https://github.com/mdellweg/migrationtest
--
Ticket URL: <https://code.djangoproject.com/ticket/32724>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => wontfix
Comment:
This is expected, if you want to get rid of parent rows you should run a
data migration to remove them prior to deleting your child rows. Parent
rows are not different from any model rows as they are usable in isolation
and the fact you don't use them this way is specific to your application.
In all cases changing this behaviour now would also break backward
compatibility.
--
Ticket URL: <https://code.djangoproject.com/ticket/32724#comment:1>