-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
Description
Description
In branch develop-4
using render_model
template tag (docs) throws 'PageAdmin' object has no attribute 'title_frontend_editable_fields'
Error is in file pageadmin.py
django-cms/cms/admin/pageadmin.py
Line 742 in 5b592b9
edit_fields = [field for field in raw_fields.split(",") if field in self.title_frontend_editable_fields] |
It seems that in v4 BasePageAdmin
class was removed, which used to have title_frontend_editable_fields = ['title', 'menu_title', 'page_title']
django-cms/cms/admin/pageadmin.py
Line 109 in 159b49b
title_frontend_editable_fields = ['title', 'menu_title', 'page_title'] |
I'm not sure where this should go in v4.
Steps to reproduce
- Template code
{% render_model request.current_page "page_title" as page_title %}
- Login to admin and click on edit page
- Double click the title
- Get pop-up with 500 error
Expected behaviour
Admin modal edit for page_title
field.
Actual behaviour
500 error in modal window.
Screenshots
fsbraun