Hi,

I have a model with a __unicode__ method as follows:

def __unicode__(self):
    return self.short_name

However, if this is being called from within the admin site, I would
like it to return something different e.g:

def __unicode__(self):
    return self.full_name

This is so I can allow for more detail to be shown in the admin site,
where as the normal site shows a less-detailed field (short_name).

Any help very much appreciated!

Cheers,
Nick
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to