Fix toolbar without current_page
This commit is contained in:
parent
d9fba54b8f
commit
e762a78543
1 changed files with 4 additions and 1 deletions
|
|
@ -7,7 +7,10 @@ from cms.toolbar_pool import toolbar_pool
|
|||
|
||||
class GovPlanToolbar(CMSToolbar):
|
||||
def populate(self):
|
||||
if self.request.current_page.application_namespace != "govplan":
|
||||
if (
|
||||
self.request.current_page
|
||||
and self.request.current_page.application_namespace != "govplan"
|
||||
):
|
||||
return
|
||||
menu = self.toolbar.get_or_create_menu("govplan-menu", "Koalitionstracker")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue