Fixed #9913 - Clarified User.is_authenticated docs.

Thanks rshea for the draft text.
This commit is contained in:
Tim Graham 2013-03-31 03:59:34 -04:00
parent c119d0f152
commit ac4d82b94a
1 changed files with 8 additions and 4 deletions

View File

@ -111,10 +111,14 @@ Methods
.. method:: is_authenticated() .. method:: is_authenticated()
Always returns ``True``. This is a way to tell if the user has been Always returns ``True`` (as opposed to
authenticated. This does not imply any permissions, and doesn't check ``AnonymousUser.is_authenticated()`` which always returns ``False``).
if the user is active - it only indicates that the user has provided a This is a way to tell if the user has been authenticated. This does not
valid username and password. 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.
.. method:: get_full_name() .. method:: get_full_name()