summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-05-14 10:25:06 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-14 11:00:51 +0200
commite341bed606d8ab2864838795276692cf86b08687 (patch)
tree3ac4945bede66f88cc2eec65dfcb2a3a03a21902 /docs/ref
parentadfbf653dc1c1d0e0dacc4ed46602d22ba28b004 (diff)
Refs #31034 -- Documented admin requires django.template.context_processors.request.
Required since d24ba1be7a53a113d19e2860c03aff9922efec24. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/admin/index.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 420dac182b..085beb4518 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -34,11 +34,18 @@ If you're not using the default project template, here are the requirements:
#. Configure a :class:`~django.template.backends.django.DjangoTemplates`
backend in your :setting:`TEMPLATES` setting with
- ``django.contrib.auth.context_processors.auth`` and
+ ``django.contrib.auth.context_processors.auth``,
+ ``django.contrib.messages.context_processors.request``, and
``django.contrib.messages.context_processors.messages`` in
the ``'context_processors'`` option of :setting:`OPTIONS
<TEMPLATES-OPTIONS>`.
+ .. versionchanged:: 3.1
+
+ ``django.contrib.messages.context_processors.request`` was added as a
+ requirement in the ``'context_processors'`` option to support the new
+ :attr:`.AdminSite.enable_nav_sidebar`.
+
#. If you've customized the :setting:`MIDDLEWARE` setting,
:class:`django.contrib.auth.middleware.AuthenticationMiddleware` and
:class:`django.contrib.messages.middleware.MessageMiddleware` must be