here is the list display http://picasaweb.google.com/110428031719333287170/BaslKsZAlbum#5453042316004332754
I want that to appear in a list display, because that is what the client wants :) I tried writing unicode method , but it has no effect.I dont know why.And when I try to use maphdid_id, it says it deosnt exist On 26 Mart, 13:11, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Mar 26, 4:44 pm, Asim Yuksel <a.sinanyuk...@gmail.com> 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 django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.