Am Dienstag, 8. Januar 2008 14:10 schrieb Alex Koshelev: > Simpliest way is to patch model class at applications loading time: > > #somewhere in your own models.py file of some app > from django.contrib.auth.models import User > > def user_unicode(self): > return '%s: %s %s' % (self.username, self.first_name, > self.last_name) > User.__unicode__ = user_unicode
Hi, Yes, that's simpler than my solution. And the models file is a good place for this. Thank you, Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---