Code

Ticket #4346: modelclass.diff

File modelclass.diff, 380 bytes (added by Marc Fargas <telenieko@…>, 7 years ago)

Strips _()

Line 
1=== modified file 'django/contrib/auth/models.py'
2--- django/contrib/auth/models.py       2007-04-25 09:34:29 +0000
3+++ django/contrib/auth/models.py       2007-05-20 15:34:54 +0000
4@@ -279,7 +279,7 @@
5         pass
6 
7     def __str__(self):
8-        return _('AnonymousUser')
9+        return 'AnonymousUser'
10 
11     def __eq__(self, other):
12         return isinstance(other, self.__class__)
13