I'm creating models, where each model should be related with a user, like this:
class Item(models.Model):
user = models.ForeignKey(User)
But then in the Django Admin, for an Item
, it shows a select
field with all the users listed by their usernames. In addition to their usernames, I also need to display each user's first_name
and last_name
.
How can all three fields be displayed together within that select list in the Django Admin interface?