Opened 9 years ago
Closed 9 years ago
#25988 closed Cleanup/optimization (wontfix)
Change django.db.models.deletion.CASCADE to django.db.models.deletion.PROTECT while creating migrations
Description ¶
By default, on deletion, the changes shouldn't be cascaded, but protected. Results in loss of data if the migrations generated are not checked carefully.
Note:
See TracTickets
for help on using tickets.
Thanks for the suggestion, but it's obsolete because Django 1.9 deprecates the default value for
on_delete
so that in Django 2.0, the developer must specify a value.