Fixes the KeyError that occurs in Django CMS 3.11.8 or later.
PageToolbarMeta.populate tests for a permission named change but the proper permission name is change_page, causing a KeyError to be raised with Django CMS 3.11.8 or later. change_page has been used since at least Django CMS 3.4.0, but a refactoring of Django CMS' cms.utils.has_page_permission function in 3.11.8 now results in a KeyError being raised.
Description
Fixes the KeyError that occurs in Django CMS 3.11.8 or later.
PageToolbarMeta.populate
tests for a permission namedchange
but the proper permission name ischange_page
, causing aKeyError
to be raised with Django CMS 3.11.8 or later.change_page
has been used since at least Django CMS 3.4.0, but a refactoring of Django CMS'cms.utils.has_page_permission
function in 3.11.8 now results in aKeyError
being raised.References
Fix #214
Checklist
inv lint
changes
file included (see docs)