summaryrefslogtreecommitdiff
path: root/docs/topics/class-based-views
diff options
context:
space:
mode:
authoralexanderblnf <alexandru@g2g-online.nl>2019-03-11 11:17:50 +0100
committerTim Graham <timograham@gmail.com>2019-03-12 10:55:37 -0400
commit406de977ea1a6429535d21240e3ecdac06d4516c (patch)
tree974e5ebf3863a839f2677dbed3643526414391a5 /docs/topics/class-based-views
parentd77657737fcf09a28bc7905be15974977439351a (diff)
Fixed #30161 -- Added how to decorate class-based views to view decorators docs.
Diffstat (limited to 'docs/topics/class-based-views')
-rw-r--r--docs/topics/class-based-views/intro.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/topics/class-based-views/intro.txt b/docs/topics/class-based-views/intro.txt
index 8399b56041..b1212af585 100644
--- a/docs/topics/class-based-views/intro.txt
+++ b/docs/topics/class-based-views/intro.txt
@@ -307,6 +307,9 @@ decorator. In the example, ``never_cache()`` will process the request before
``login_required()``.
In this example, every instance of ``ProtectedView`` will have login protection.
+These examples use ``login_required``, however, the same behavior can be
+obtained more simply using
+:class:`~django.contrib.auth.mixins.LoginRequiredMixin`.
.. note::