Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[BUG] Can't easily delete a page that has versions #8068

Copy link
Copy link
Closed
@waveywhite

Description

@waveywhite
Issue body actions

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

  1. Create a page
  2. Edit the page and publish, creating at least one version
  3. In CMS admin go to Page Contents
  4. Attempt to delete the page in question
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.