From 3642c3758b3426292e02fe4669cc2d2028a9ac8c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 25 Oct 2017 11:17:17 -0400 Subject: [PATCH] Suggested LoginView rather than @login_required as an alternative to authenticate(). --- docs/topics/auth/default.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index a60b267c1a..4c32bb5afa 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -142,9 +142,8 @@ Authenticating users example, it's used by the :class:`~django.contrib.auth.middleware.RemoteUserMiddleware`. Unless you are writing your own authentication system, you probably won't use - this. Rather if you are looking for a way to limit access to logged in - users, see the :func:`~django.contrib.auth.decorators.login_required` - decorator. + this. Rather if you're looking for a way to login a user, use the + :class:`~django.contrib.auth.views.LoginView`. .. _topic-authorization: