1
0
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:
Joseph Kocherhans
2006-03-07 01:53:20 +00:00
parent bc851653b7
commit dc63d91c56
5 changed files with 48 additions and 47 deletions

View File

@@ -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``.

View File

@@ -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():