On Mar 26, 4:44 pm, Asim Yuksel <[email protected]> wrote: > Yes foreignkey is an object but there must be a way to display the > value in a list_display. I am a newbie too. self.maphdid.id doesnt > work
The underlying id field is called "maphdid_id", so you should be able to use that. But I have no idea why you'd want that to appear in a list_display, it's of no use to users of your application. Much more worthwhile is to define a useful __unicode__ method on the Tblmaphds model itself, which will then appear in the list_display in place of 'Tblmaphds object'. -- DR. -- 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.

