Ticket #5338: user-unicode.diff
File user-unicode.diff, 569 bytes (added by , 17 years ago) |
---|
-
Users/seth/django_src/django/contrib/auth/models.py
141 141 search_fields = ('username', 'first_name', 'last_name', 'email') 142 142 143 143 def __unicode__(self): 144 return self. username144 return self.get_full_name() 145 145 146 146 def get_absolute_url(self): 147 147 return "/users/%s/" % urllib.quote(smart_str(self.username))