summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorJaime Irurzun <jaime@irurzun.com>2013-08-08 12:45:06 +0100
committerTim Graham <timograham@gmail.com>2013-08-08 10:27:34 -0400
commit7836bd502c4d5d65728c1e9eb58bc137b316c6e5 (patch)
tree4e7a3333c8375e061485bad1a7d80f063fa925f1 /docs/ref
parent9cc7407f2c6b457c1b8f1e7c2a57e7b065d9bc41 (diff)
[1.6.x] Clarifed meaning of models.User.is_authenticated()
Backport of f96fe3cd1e from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/auth.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt
index afbc6ec048..e1d89219bc 100644
--- a/docs/ref/contrib/auth.txt
+++ b/docs/ref/contrib/auth.txt
@@ -114,11 +114,13 @@ Methods
Always returns ``True`` (as opposed to
``AnonymousUser.is_authenticated()`` which always returns ``False``).
This is a way to tell if the user has been authenticated. This does not
- imply any permissions, and doesn't check if the user is active - it
- only indicates that ``request.user`` has been populated by the
- :class:`~django.contrib.auth.middleware.AuthenticationMiddleware` with
- a :class:`~django.contrib.auth.models.User` object representing the
- currently logged-in user.
+ imply any permissions, and doesn't check if the user is active or has
+ a valid session. Even though normally you will call this method on
+ ``request.user`` to find out whether it has been populated by the
+ :class:`~django.contrib.auth.middleware.AuthenticationMiddleware`
+ (representing the currently logged-in user), you should know this method
+ returns ``True`` for any :class:`~django.contrib.auth.models.User`
+ instance.
.. method:: get_full_name()