Ticket #23488: trac_23488_anonymoususer_get_username.patch
File trac_23488_anonymoususer_get_username.patch, 344 bytes (added by , 10 years ago) |
---|
-
django/contrib/auth/models.py
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index 3040954..737d6d3 100644
a b class AnonymousUser(object): 509 509 510 510 def is_authenticated(self): 511 511 return False 512 513 def get_username(self): 514 return self.username