Closed jmrivas86 closed 5 years ago
Hello @jmrivas86,
This problem happens when djangocms_history is not in your INSTALLED_APPS
.
Because of this, django's orm can't cascade the deletion so the database raises an exception.
I don't think there's much we can do here since Django allows you to add/remove apps from your INSTALLED_APPS
without a clean up action. I'd have to check further.
Hi @czpython I have djangocms_history in my INSTALLED_APPS
and running the migrations... maybe is the order?
Hello @jmrivas86, If you edit a plugin inside a page, then undo/redo the change. Are you able to delete this page individually from the admin?
Summary
Error when deleted pages which have a placeholder that is referenced in PlaceholderAction:
Expected behaviour
The page can be deleted with all its history
Actual behaviour
The page can not be deleted because it have a placeholder linked to djangocms_history
Environment