From 179f478ffe8ff31c753df9cc0f83f0f9eb4557de Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Tue, 3 Jul 2007 12:24:46 +0000 Subject: [PATCH] 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 --- django/contrib/auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index e8384ba353..5de8927bd6 100644 --- a/django/contrib/auth/models.py +++ b/django/contrib/auth/models.py @@ -282,7 +282,7 @@ class AnonymousUser(object): pass def __str__(self): - return _('AnonymousUser') + return 'AnonymousUser' def __eq__(self, other): return isinstance(other, self.__class__)