summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorAndrei Kulakov <andrei.avk@gmail.com>2015-03-09 14:50:01 -0400
committerTim Graham <timograham@gmail.com>2015-03-13 14:46:13 -0400
commite8a758e941bb36f69b6224b73b00b9d6a814bbdc (patch)
tree486c91df7219467460b27f7ac6d6d518c5db3d8a /docs/topics
parentb089759d6025582f36fbea3c4be3855c50b82462 (diff)
Fixed #24253 -- Documented staff_member_required decorator.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/auth/default.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 156746e3c2..0cea34ed1a 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -485,7 +485,15 @@ The login_required decorator
.. note::
- The login_required decorator does NOT check the is_active flag on a user.
+ The ``login_required`` decorator does NOT check the ``is_active`` flag on a
+ user.
+
+.. seealso::
+
+ If you are writing custom views for Django's admin (or need the same
+ authorization check that the built-in views use), you may find the
+ :func:`django.contrib.admin.views.decorators.staff_member_required`
+ decorator a useful alternative to ``login_required()``.
Limiting access to logged-in users that pass a test
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~