From e807ad7834c257469b15c3473c7f3a6748230029 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Fri, 20 Oct 2017 12:12:13 +0200 Subject: [PATCH] Bugfix: Limit glasfaser menu to Glasfaser template only --- ungleich_page/cms_menus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ungleich_page/cms_menus.py b/ungleich_page/cms_menus.py index 8271a86c..4491eb84 100644 --- a/ungleich_page/cms_menus.py +++ b/ungleich_page/cms_menus.py @@ -12,7 +12,7 @@ class GlasfaserMenu(CMSAttachMenu): def get_nodes(self, request): nodes = [] - if request and request.current_page: + if request and request.current_page.get_template() == 'glasfaser': template_context = { "request": request, }