Django

Code

Changeset 5421

Show
Ignore:
Timestamp:
06/04/07 02:48:51 (1 year ago)
Author:
mtredinnick
Message:

unicode: Fixed #4472 -- Must return unicode objects from unicode methods.
Lazy translation proxies are not an acceptable substitute.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/unicode/django/contrib/auth/models.py

    r5320 r5421  
    282282 
    283283    def __unicode__(self): 
    284         return _('AnonymousUser') 
     284        return 'AnonymousUser' 
     285 
     286    def __str__(self): 
     287        return unicode(self).encode('utf-8') 
    285288 
    286289    def __eq__(self, other):