pwa: allow navigation context without page (#40687)
This commit is contained in:
parent
b85eb35b2f
commit
1424afc2a1
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue