Skip to content
Browse files

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


object, as required by Python.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 1b1379a commit 179f478ffe8ff31c753df9cc0f83f0f9eb4557de @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/auth/
2 django/contrib/auth/
@@ -282,7 +282,7 @@ def __init__(self):
def __str__(self):
- return _('AnonymousUser')
+ return 'AnonymousUser'
def __eq__(self, other):
return isinstance(other, self.__class__)

0 comments on commit 179f478

Please sign in to comment.
Something went wrong with that request. Please try again.