8000 Advanced page settings not working · Issue #6687 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content
Advanced page settings not working #6687
Closed
@mireq

Description

@mireq

Advanced page settings raises TypeError: __str__ returned non-string (type __proxy__) exception.

Constant "Inherit the template of the nearest ancestor" (cms.utils.conf) is wrapped in ugettext_lazy 2 times. First in cms.utils.conf, then in cms.models.pagemodel (template_choices attribute). This raises exception when casting to str:

from cms.models import Page
str(Page.template_choices[-1][1])

Environment

  • Python version: 3.6.5
  • Django version: 2.1.8
  • django CMS version: 3.6.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0