Closed
Description
Description
It is impossible to delete a page from the CMS admin if it has versions, unless a setting is changed in settings.py.
Steps to reproduce
- Create a page
- Edit the page and publish, creating at least one version
- In CMS admin go to Page Contents
- Attempt to delete the page in question
- A message appears saying that the versions are protected and it's impossible to delete the page
Expected behaviour
It is possible to delete a page using the user interface.
Actual behaviour
You get a notice about protected objects and there's no way of overcoming this from the admin UI
Screenshots
Additional information (CMS/Python/Django versions)
If you add the following line to settings.py then you can delete pages. Surely this should be the default behaviour?:
"""
DJANGOCMS_VERSIONING_ALLOW_DELETING_VERSIONS = True
"""
Do you want to help fix this issue?
- Yes, I want to help fix this issue and I will join the channel #pr-reviews on the Discord Server to confirm with the community that a PR is welcome.
- [ x] No, I only want to report the issue.
Metadata
Metadata
Assignees
Labels
No labels