mirror of https://github.com/django/django.git
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:
parent
1b1379a182
commit
179f478ffe
|
@ -282,7 +282,7 @@ class AnonymousUser(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return _('AnonymousUser')
|
return 'AnonymousUser'
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return isinstance(other, self.__class__)
|
return isinstance(other, self.__class__)
|
||||||
|
|
Loading…
Reference in New Issue