tangentlabs / django-fancypages

A Content Enhancement System for Django
https://django-fancypages.readthedocs.org
BSD 3-Clause "New" or "Revised" License
34 stars 11 forks source link

Prevent user-related content blocks and containers from being deleted when user is deleted #34

Open roadsideseb opened 10 years ago

roadsideseb commented 10 years ago

Reported by @a-musing-moose in django-oscar-fancypages#90.

When you try to delete a user in admin it warns that certain widgets and image assets are also going to be deleted.

Check all models in fancypages for foreign keys related to users and set the on_delete attribute appropriately.