mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #783 -- Added AnonymousUser.id = None. Thanks, EABinGA
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -1,4 +1,6 @@ | ||||
| class AnonymousUser: | ||||
|     id = None | ||||
|  | ||||
|     def __init__(self): | ||||
|         pass | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user