From c4d533c870a386b50f0299d80fd0d239b9dd56b2 Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Wed, 31 Mar 2021 22:01:03 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20star=C3=A9=20Django?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/context_processors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mamweb/context_processors.py b/mamweb/context_processors.py index 90ca195b..a07ddc7e 100644 --- a/mamweb/context_processors.py +++ b/mamweb/context_processors.py @@ -11,9 +11,9 @@ def vzhled(request): return {'noc' : noc} def april(req): - if 'X-April' in req.headers: + if 'HTTP_X_APRIL' in req.META: try: - year = int(req.headers['X-April']) + year = int(req.META['HTTP_X_APRIL']) return {'april': year} except: pass # Fall-back to regular behaviour