Hello all,

I have this setup (stripped):

class Album(models.Model):
title = models.CharField(maxlength=255)
...
class Person(models.Model):
first_name = models.CharField(maxlength=50, blank=True)
last_name = models.CharField(maxlength=100)
...

class Performance(models.Model):
album = models.ForeignKey(Album)
person = models.ForeignKey(Person)
role = models.CharField(maxlength=25)

def __str__(self):
return "%s %s" % (self.person, self.role)

A performance is the appearance of a person on an album. A role would  
be something like Leader, Drums, Vocals, Producer, etc.

It would be helpful to display the name of the person with the role  
of leader in the admin list of Albums.
ie. list_display = ('id', 'title', 'person_with_role_of_leader',  
created', 'modified')

Would someone be willing to get me started on how to accomplish this?

Thanks,
Dan J.

--~--~---------~--~----~------------~-------~--~----~
 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