Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #783 -- Added AnonymousUser.id = None. Thanks, EABinGA

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6e40d8c29f2b6ed926cf764f5c9cdce07bc9a069 1 parent 8a01374
Adrian Holovaty authored November 13, 2005
2  django/parts/auth/anonymoususers.py
... ...
@@ -1,4 +1,6 @@
1 1
 class AnonymousUser:
  2
+    id = None
  3
+
2 4
     def __init__(self):
3 5
         pass
4 6
 
1  docs/authentication.txt
@@ -172,6 +172,7 @@ Anonymous users
172 172
 ``django.parts.auth.anonymoususers.AnonymousUser`` is a class that implements
173 173
 the ``django.models.auth.users.User`` interface, with these differences:
174 174
 
  175
+    * ``id`` is always ``None``.
175 176
     * ``is_anonymous()`` returns ``True`` instead of ``False``.
176 177
     * ``has_perm()`` always returns ``False``.
177 178
     * ``set_password()``, ``check_password()``, ``set_groups()`` and

0 notes on commit 6e40d8c

Please sign in to comment.
Something went wrong with that request. Please try again.