Fixed #10030 -- Corrected a typo in a reference to the login_required decorator. Thanks to mk for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b1d487e0f8
commit
f1e8d24e0c
|
@ -1188,7 +1188,7 @@ members can access them. If you add your own views to either a ``ModelAdmin``
|
||||||
or ``AdminSite`` you should ensure that where necessary they are protected in
|
or ``AdminSite`` you should ensure that where necessary they are protected in
|
||||||
the same manner. To do this use the ``admin_perm_test`` decorator provided in
|
the same manner. To do this use the ``admin_perm_test`` decorator provided in
|
||||||
``django.contrib.admin.utils.admin_perm_test``. It can be used in the same way
|
``django.contrib.admin.utils.admin_perm_test``. It can be used in the same way
|
||||||
as the ``login_requied`` decorator.
|
as the ``login_required`` decorator.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
The ``admin_perm_test`` decorator can only be used on methods which are on
|
The ``admin_perm_test`` decorator can only be used on methods which are on
|
||||||
|
|
Loading…
Reference in New Issue