diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-07-03 12:24:46 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-07-03 12:24:46 +0000 |
| commit | 179f478ffe8ff31c753df9cc0f83f0f9eb4557de (patch) | |
| tree | 6b8e50066dc3f259fc36318e6a54ccab760c512f | |
| parent | 1b1379a182a055a696152fcc0620f9ec4c590c6d (diff) | |
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
| -rw-r--r-- | django/contrib/auth/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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__) |
