]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
settings: Add context processor django.template.context_processors.request
authorAndrew Donnellan <ajd@linux.ibm.com>
Thu, 27 Aug 2020 14:14:04 +0000 (00:14 +1000)
committerStephen Finucane <stephen@that.guru>
Thu, 27 Aug 2020 14:14:04 +0000 (00:14 +1000)
Django 3.1 adds a new admin sidebar feature that requires the
django.template.context_processors.request context processor to be enabled
in the settings.

Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/settings/base.py

index 001878acb134444f664d27dcc6bee56686d05e2f..c1bb9b27fac8a00ed22e0e34d7794e4d95b1b4b4 100644 (file)
@@ -57,6 +57,7 @@ TEMPLATES = [
                 'django.template.context_processors.debug',
                 'django.template.context_processors.i18n',
                 'django.template.context_processors.media',
+                'django.template.context_processors.request',
                 'django.template.context_processors.static',
                 'django.template.context_processors.tz',
                 'django.contrib.messages.context_processors.messages',