Ticket #4359: unicode-lazy-auth.diff

File unicode-lazy-auth.diff, 741 bytes (added by anonymous, 17 years ago)
  • contrib/auth/models.py

     
    33from django.db import backend, connection, models
    44from django.contrib.contenttypes.models import ContentType
    55from django.utils.encoding import smart_str
    6 from django.utils.translation import ugettext_lazy, ugettext as _
     6from django.utils.translation import ugettext_lazy as _
    77import datetime
    88import urllib
    99
     
    281281        pass
    282282
    283283    def __unicode__(self):
    284         return ugettext_lazy('AnonymousUser')
     284        return _('AnonymousUser')
    285285
    286286    def __eq__(self, other):
    287287        return isinstance(other, self.__class__)
Back to Top