Ticket #6174: anonymoususer.diff
File anonymoususer.diff, 988 bytes (added by , 17 years ago) |
---|
-
django/contrib/auth/tests.py
16 16 >>> u2 = User.objects.create_user('testuser2', 'test2@example.com') 17 17 >>> u2.has_usable_password() 18 18 False 19 20 >>> u.is_authenticated() 21 True 22 >>> u.is_staff 23 False 24 >>> u.is_active 25 True 26 19 27 >>> a = AnonymousUser() 28 >>> a.is_authenticated() 29 False 20 30 >>> a.is_staff 21 31 False 32 >>> a.is_active 33 False 22 34 >>> a.groups.all() 23 35 [] 24 36 >>> a.user_permissions.all() -
django/contrib/auth/models.py
322 322 id = None 323 323 username = '' 324 324 is_staff = False 325 is_active = True325 is_active = False 326 326 is_superuser = False 327 327 _groups = EmptyManager() 328 328 _user_permissions = EmptyManager()