Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ring

object, as required by Python.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5590 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 179f478ffe8ff31c753df9cc0f83f0f9eb4557de 1 parent 1b1379a
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/auth/models.py
View
2  django/contrib/auth/models.py
@@ -282,7 +282,7 @@ def __init__(self):
pass
def __str__(self):
- return _('AnonymousUser')
+ return 'AnonymousUser'
def __eq__(self, other):
return isinstance(other, self.__class__)
Please sign in to comment.
Something went wrong with that request. Please try again.