summaryrefslogtreecommitdiff
path: root/docs/ref/contrib/admin
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/contrib/admin')
-rw-r--r--docs/ref/contrib/admin/index.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index a1d4c3a563..a6a315cc88 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -2628,11 +2628,16 @@ a pattern for your new view.
.. note::
Any view you render that uses the admin templates, or extends the base
- admin template, should provide the ``current_app`` argument to
- :class:`~django.template.RequestContext` or
- :class:`~django.template.Context` when rendering the template. It should
- be set to either ``self.name`` if your view is on an ``AdminSite`` or
- ``self.admin_site.name`` if your view is on a ``ModelAdmin``.
+ admin template, should set ``request.current_app`` before rendering the
+ template. It should be set to either ``self.name`` if your view is on an
+ ``AdminSite`` or ``self.admin_site.name`` if your view is on a
+ ``ModelAdmin``.
+
+ .. versionchanged:: 1.8
+
+ In previous versions of Django, you had to provide the ``current_app``
+ argument to :class:`~django.template.RequestContext` or
+ :class:`~django.template.Context` when rendering the template.
.. _auth_password_reset: