From c5e2c20450ad278149a7561045a8c934e17d42e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Thu, 15 Sep 2022 10:10:24 -0300 Subject: [PATCH] Context processor para adicionar infos do site nas views --- sigi/apps/utils/context_processors.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 sigi/apps/utils/context_processors.py diff --git a/sigi/apps/utils/context_processors.py b/sigi/apps/utils/context_processors.py new file mode 100644 index 0000000..aacd103 --- /dev/null +++ b/sigi/apps/utils/context_processors.py @@ -0,0 +1,5 @@ +from django.contrib import admin + + +def site_context(request): + return admin.site.each_context(request) or {}