Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced page settings not working #6687

Open
mireq opened this issue Jun 4, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@mireq
Copy link

commented Jun 4, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.