Hmm, you should be able to do that. I do exactly that in one of my
models.
The only I differences I see between yours and mine is that you return
a unicode string, rather than just a string, and you wrote self.user,
rather than self.user.something.
--
You received this message because you are s
Hi,
I've this model:
--
class Person(models.Model):
user = models.ForeignKey(User)
Can I display the user.email or user.first_name in the admin site
administration?
I try this:
---
def __unicode__(self):
return u"%s %s" % (self.u
2 matches
Mail list logo