pwa: allow navigation context without page (#40687)

This commit is contained in:
Serghei Mihai 2020-03-18 11:37:53 +01:00
parent b85eb35b2f
commit 1424afc2a1
1 changed files with 1 additions and 1 deletions

View File

@ -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'),