Nathan Ostgard skrev: > list_display can use functions as their value... so, you can have: > > class Employee(models.Model): > sub_dept = ForeignKey(SubDept) > > def company(self): > return sub_dept.dept.company > > def dept(self): > return sub_dept.dept > > class Admin: > list_display = ('first_name, 'last_name', 'company', 'dept', > 'sub_dept') >
My guess is that the poster wanted this info available on the page for an individual employee, not the list. At least that is what I need (and haven't found an easy way of doing). Nis --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---