Ticket #4359: unicode-lazy-auth.diff
File unicode-lazy-auth.diff, 741 bytes (added by , 17 years ago) |
---|
-
contrib/auth/models.py
3 3 from django.db import backend, connection, models 4 4 from django.contrib.contenttypes.models import ContentType 5 5 from django.utils.encoding import smart_str 6 from django.utils.translation import ugettext_lazy , ugettextas _6 from django.utils.translation import ugettext_lazy as _ 7 7 import datetime 8 8 import urllib 9 9 … … 281 281 pass 282 282 283 283 def __unicode__(self): 284 return ugettext_lazy('AnonymousUser')284 return _('AnonymousUser') 285 285 286 286 def __eq__(self, other): 287 287 return isinstance(other, self.__class__)