Re: list_display and ForeignForeignKey

2005-12-18 Thread [EMAIL PROTECTED]
Thank you a lot. Somehow I did not try the no-parenthesis notation nor did I use custom methods, for no particular reason...

Re: list_display and ForeignForeignKey

2005-12-17 Thread Robert Wittams
[EMAIL PROTECTED] wrote: > Please take a look at this: > > from django.core import meta > from django.models.core import sites > > class Group(meta.Model): > site = meta.ForeignKey(sites.Site) > > class Product(meta.Model): > group = meta.ForeignKey(Group) > class META: >

Re: list_display and ForeignForeignKey

2005-12-17 Thread hugo
>An option would be support for methods in list_display (if implemented) That is supported. You can put any method name of the object into list_display - at least if it is a parameterless method. So just define your method and put that into list_display. bye, Georg

list_display and ForeignForeignKey

2005-12-17 Thread [EMAIL PROTECTED]
Please take a look at this: from django.core import meta from django.models.core import sites class Group(meta.Model): site = meta.ForeignKey(sites.Site) class Product(meta.Model): group = meta.ForeignKey(Group) class META: admin = meta.Admin(list_display