Ticket #5338: user-unicode.diff

File user-unicode.diff, 569 bytes (added by seth@…, 17 years ago)

diff file for user model change

  • Users/seth/django_src/django/contrib/auth/models.py

     
    141141        search_fields = ('username', 'first_name', 'last_name', 'email')
    142142
    143143    def __unicode__(self):
    144         return self.username
     144        return self.get_full_name()
    145145
    146146    def get_absolute_url(self):
    147147        return "/users/%s/" % urllib.quote(smart_str(self.username))
Back to Top