From 1424afc2a1cd42259855844d25b917715ffbf0b4 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 18 Mar 2020 11:37:53 +0100 Subject: [PATCH] pwa: allow navigation context without page (#40687) --- combo/apps/pwa/templatetags/pwa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/apps/pwa/templatetags/pwa.py b/combo/apps/pwa/templatetags/pwa.py index 13ec3de1..d92c0c80 100644 --- a/combo/apps/pwa/templatetags/pwa.py +++ b/combo/apps/pwa/templatetags/pwa.py @@ -29,7 +29,7 @@ def pwa_navigation(context): pwa_navigation_template = template.loader.get_template('combo/pwa/navigation.html') entries = list(PwaNavigationEntry.objects.all()) context = { - 'page': context['page'], + 'page': context.get('page'), 'entries': entries, 'include_user_name': bool([x for x in entries if x.use_user_name_as_label]), 'user': context.get('user'),