> I also get an error when I try 'parent.name'.

Try just 'parent'. It will display whatever is coming out of your
model by default (in the __str__() or __unicode__() method). That will
probably do it for you, but you can access the other information if
you write a method for it:

class Child(model.models):
    parent = ForeignKey(Parent)

    def parent_name(self):
        return str(self.parent.name)

    class admin:
        list_display('id', 'parent_name')

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