summaryrefslogtreecommitdiff
path: root/docs/ref/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/contrib')
-rw-r--r--docs/ref/contrib/admin/index.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index bdbe61505d..2da6774d44 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -1895,12 +1895,13 @@ a new view to your admin site, extend the base
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``.
+ :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-reverse-urls: