Ticket #23488: trac_23488_anonymoususer_get_username.patch

File trac_23488_anonymoususer_get_username.patch, 344 bytes (added by Damien Baty, 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):  
    509509
    510510    def is_authenticated(self):
    511511        return False
     512
     513    def get_username(self):
     514        return self.username
Back to Top