Permalink
Browse files

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...
1 parent 8a01374 commit 6e40d8c29f2b6ed926cf764f5c9cdce07bc9a069 @adrianholovaty adrianholovaty committed Nov 13, 2005
Showing with 3 additions and 0 deletions.
  1. +2 −0 django/parts/auth/anonymoususers.py
  2. +1 −0 docs/authentication.txt
View
2 django/parts/auth/anonymoususers.py
@@ -1,4 +1,6 @@
class AnonymousUser:
+ id = None
+
def __init__(self):
pass
View
1 docs/authentication.txt
@@ -172,6 +172,7 @@ Anonymous users
``django.parts.auth.anonymoususers.AnonymousUser`` is a class that implements
the ``django.models.auth.users.User`` interface, with these differences:
+ * ``id`` is always ``None``.
* ``is_anonymous()`` returns ``True`` instead of ``False``.
* ``has_perm()`` always returns ``False``.
* ``set_password()``, ``check_password()``, ``set_groups()`` and

0 comments on commit 6e40d8c

Please sign in to comment.