Fixed #4751 -- Fixed that AnonymousUser.__str__ to always return a string

object, as required by Python.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5590 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-07-03 12:24:46 +00:00
parent 1b1379a182
commit 179f478ffe
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class AnonymousUser(object):
pass
def __str__(self):
return _('AnonymousUser')
return 'AnonymousUser'
def __eq__(self, other):
return isinstance(other, self.__class__)