Skip to content

No graceful fallback when toggling CMS_TEMPLATE_INHERITANCE after pages using it already exist #5914

Open
@alexgleason

Description

@alexgleason

Summary

On some Django CMS pages, if I edit them and then press "submit", the page won't be saved. Instead an error will be shown and the page will not be saved.

The error says Please correct the error below. but nothing below is highlighted.

Upon further inspection with django debug toolbar, I can see the full error,

 'errors': [u'<ul class="errorlist"><li>Select a valid choice. INHERIT is not one of the available choices.</li></ul>'],

Below is a screenshot.

screenshot from 2017-03-28 11 20 29

Expected behaviour

The page will save without error.

Actual behaviour

The page does not save and gives me an error. This only happens to some pages, but not all. I cannot find the difference between the pages this happens to versus the ones it does not.

Environment

  • Python version: 2.7.12
  • Django version: 1.8.17
  • django CMS version: 3.4.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions