Projet

Général

Profil

0001-pwa-allow-navigation-context-without-page-40687.patch

Serghei Mihai (congés, retour 15/05), 18 mars 2020 11:46

Télécharger (965 octets)

Voir les différences:

Subject: [PATCH] pwa: allow navigation context without page (#40687)

 combo/apps/pwa/templatetags/pwa.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
combo/apps/pwa/templatetags/pwa.py
29 29
    pwa_navigation_template = template.loader.get_template('combo/pwa/navigation.html')
30 30
    entries = list(PwaNavigationEntry.objects.all())
31 31
    context = {
32
        'page': context['page'],
32
        'page': context.get('page'),
33 33
        'entries': entries,
34 34
        'include_user_name': bool([x for x in entries if x.use_user_name_as_label]),
35 35
        'user': context.get('user'),
36
-