Django-cms: Editing advanced settings through change view raises AttributeError

Created on 3 Aug 2017  路  3Comments  路  Source: django-cms/django-cms

Summary

Editing advanced settings for a page through the change view of page admin raises an error if djangocms_blog is an installed app.

AttributeError: This QueryDict instance is immutable error is raised

Expected behaviour

Advanced settings for a page should be successfully modified through page admin change view.

Actual behaviour

AttributeError: This QueryDict instance is immutable is raised at cms/admin/forms.py at line 305:

del self.data['application_configs']

self is django.http.request.QueryDict({'application_namespace': '', 'reverse_id': '', 'xframe_options': '0', 'site': '1', 'application_urls': '', 'template': 'base.html', 'csrfmiddlewaretoken': 'foo', 'redirect': '', 'language': 'en', 'overwrite_url': '', 'navigation_extenders': '', '_save': 'Save' })

app is a djangocms_blog.cms_apps.BlogApp

app_configs is like {'BlogApp': }

app_namespaces is {'BlogApp': 'djangocms_blog'}

Environment

  • Python version: 3.5
  • Django version: 1.11.4 (But this error is non-specific to latest Django)
  • django CMS version: 3.4.3
accepted has patch

Most helpful comment

A fix for this will be released on django CMS 3.5.1 and 3.4.6

All 3 comments

The same behaviour here:

It doesn't work with:
Django: 1.11.X
Django-Cms: 3.4.5
Python: 2.7.11

It works with:
Django: 1.10.X

It doesn't fail for djangocms_blog only. it fails for any random app attached

Hi there,
feel free to comment on the related PR.

A fix for this will be released on django CMS 3.5.1 and 3.4.6

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jedie picture jedie  路  3Comments

FinalAngel picture FinalAngel  路  8Comments

quiqueporta picture quiqueporta  路  8Comments

evildmp picture evildmp  路  5Comments

maltebeckmann picture maltebeckmann  路  6Comments