Hello,
I've got a test class as follows:
class Test(models.Model):
name = models.ForeignKey(User)
# more fields after this one
in the admin change form the select box only shows name.username (eg
nih)
is it possible to show the full name in the select box via something
like:
return "%s.%s" % (name.first_name[0], name.last_name)
which the select box would then hopefully show something like J.Smith
and selecting J.Smith would be the same as selecting name.username
thanks!
Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---