Ticket #18093: 18093.diff
File 18093.diff, 871 bytes (added by , 13 years ago) |
---|
-
django/contrib/auth/tests/basic.py
52 52 def test_anonymous_user(self): 53 53 "Check the properties of the anonymous user" 54 54 a = AnonymousUser() 55 self.assertEqual(a.pk, None) 55 56 self.assertFalse(a.is_authenticated()) 56 57 self.assertFalse(a.is_staff) 57 58 self.assertFalse(a.is_active) -
django/contrib/auth/models.py
406 406 407 407 class AnonymousUser(object): 408 408 id = None 409 pk = None 409 410 username = '' 410 411 is_staff = False 411 412 is_active = False