Changeset 6912
- Timestamp:
- 12/11/07 00:37:07 (9 months ago)
- Files:
-
- django/trunk/django/contrib/auth/models.py (modified) (1 diff)
- django/trunk/django/contrib/auth/tests.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/auth/models.py
r6375 r6912 323 323 username = '' 324 324 is_staff = False 325 is_active = True325 is_active = False 326 326 is_superuser = False 327 327 _groups = EmptyManager() django/trunk/django/contrib/auth/tests.py
r6299 r6912 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 31 False 32 >>> a.is_active 21 33 False 22 34 >>> a.groups.all()
