Question about the PlaceholderAdminMixin for a model using placeholder fields

19 views
Skip to first unread message

David Bertrand

unread,
May 22, 2020, 1:55:07 PM5/22/20
to django CMS developers
I gather from the docs that you must use the PlaceholderAdminMixin on any model on which you choose to add PlaceholderFields.http://docs.django-cms.org/en/latest/how_to/placeholders.html

It's not entirely clear what the consequence of not doing that is but from digging around the github issues, it seems something to do with staff permissions on editing the model in the admin? In my case, however, the model in question doesn't have it's own ModelAdmin but instead is an inline on a separate model. Anyone know if this is going to cause issues down the line and if so, how to address this use case?

Thanks for any help.

Jacob Rief

unread,
Jun 10, 2020, 10:08:51 AM6/10/20
to django CMS developers
As far as I know, you need this, when using the templatetag render_placeholder in one of the templates rendering an object with its placeholderfield.
Otherwise Django-CMS does not know how to handle the structure mode, etc.
Reply all
Reply to author
Forward
0 new messages