Thank you a lot. Somehow I did not try the no-parenthesis notation nor
did I use custom methods, for no particular reason...
[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:
>
>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
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
4 matches
Mail list logo