mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
magic-removal: moved django.parts.auth.anonymoususers.AnonymousUser to django.contrib.auth.models.AnonymousUser
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -192,7 +192,7 @@ the setting and checking of these values behind the scenes.
|
||||
Anonymous users
|
||||
---------------
|
||||
|
||||
``django.parts.auth.anonymoususers.AnonymousUser`` is a class that implements
|
||||
``django.contrib.auth.models.AnonymousUser`` is a class that implements
|
||||
the ``django.models.auth.users.User`` interface, with these differences:
|
||||
|
||||
* ``id`` is always ``None``.
|
||||
|
||||
@@ -88,7 +88,7 @@ All attributes except ``session`` should be considered read-only.
|
||||
``user``
|
||||
A ``django.models.auth.users.User`` object representing the currently
|
||||
logged-in user. If the user isn't currently logged in, ``user`` will be set
|
||||
to an instance of ``django.parts.auth.anonymoususers.AnonymousUser``. You
|
||||
to an instance of ``django.contrib.auth.models.AnonymousUser``. You
|
||||
can tell them apart with ``is_anonymous()``, like so::
|
||||
|
||||
if request.user.is_anonymous():
|
||||
|
||||
Reference in New Issue
Block a user