askbot-devel icon indicating copy to clipboard operation
askbot-devel copied to clipboard

Missing ON DELETE CASCADE

Open ghost opened this issue 9 years ago • 2 comments

Hello,
looks like your code is missing some ON DELETE CASCADE which makes it really hard to completely delete a user from the system (spam etc) and the Django-interface seems to be broken as well so that would be the only option and by the way much better coding.

ghost avatar Apr 23 '16 18:04 ghost

Yes, I notice the on_delete option is available for the foreign keys, these could be put to use in the code.

evgenyfadeev avatar Apr 23 '16 21:04 evgenyfadeev

Starting with Django 2.0 on_delete must be set explicitly for foreign key relations.

martin-bts avatar Jul 05 '19 11:07 martin-bts