diff options
| author | Tim Graham <timograham@gmail.com> | 2017-10-25 11:17:17 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-25 12:02:12 -0400 |
| commit | c4f518e484a948af9c2fe370896c3e2ddb492d40 (patch) | |
| tree | b2fe83c9ea10c1577dacde4e4c0e7dcdb233066e /docs | |
| parent | e3b59772badc9160ec2873bdc3761f2cc140fe18 (diff) | |
[2.0.x] Suggested LoginView rather than @login_required as an alternative to authenticate().
Backport of 3642c3758b3426292e02fe4669cc2d2028a9ac8c from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth/default.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index 85398f428f..affabea089 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -146,9 +146,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: |
