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

Add management command to remove ophaned content blocks #8

Open roadsideseb opened 11 years ago

roadsideseb commented 11 years ago

Blocks in FP make use of multi-table inheritance for blocks. This can cause orphaned entries in the ContentBlock table when e.g. reverting migrations. It would be nice to have management command that looks for orphaned ContentBlock rows and removes them. Similar to the unreferenced_files in django-extensions.