From cfbc4ef61c5af50776b80bddfcf37539e1397e2d Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 3 May 2024 22:26:26 +0200 Subject: [PATCH] feat: context processor for footer nav --- shiftregister/core/context_processors.py | 6 ++---- shiftregister/settings.py | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/shiftregister/core/context_processors.py b/shiftregister/core/context_processors.py index 99a5a1a..2ec7361 100644 --- a/shiftregister/core/context_processors.py +++ b/shiftregister/core/context_processors.py @@ -9,9 +9,7 @@ def nav(request): for item in items ] - return { - "nav_items": nav_items, - } + return {"nav_items": nav_items} def footer_nav(request): @@ -22,4 +20,4 @@ def footer_nav(request): for item in items ] - return {"nav_items": nav_items} + return {"footer_nav_items": nav_items} diff --git a/shiftregister/settings.py b/shiftregister/settings.py index 7b4c279..c42f46c 100644 --- a/shiftregister/settings.py +++ b/shiftregister/settings.py @@ -86,6 +86,7 @@ TEMPLATES = [ "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", "shiftregister.app.context_processors.proc", + "shiftregister.core.context_processors.footer_nav", "shiftregister.core.context_processors.nav", ], },