askbot-devel
askbot-devel copied to clipboard
Missing ON DELETE CASCADE
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.
Yes, I notice the on_delete option is available for the foreign keys, these could be put to use in the code.
Starting with Django 2.0 on_delete must be set explicitly for foreign key relations.