Re: list_display a Many to Many field

2008-07-10 Thread [EMAIL PROTECTED]
No, authors is the related manager, so it's all method returns a QuerySet with all the relevant items. On Jul 10, 8:25 am, Fernando Rodríguez <[EMAIL PROTECTED]> wrote: > El mié, 09-07-2008 a las 06:40 -0700, urukay escribió: > > > > > this should work: > > > def get_authors(self): > >     return

Re: list_display a Many to Many field

2008-07-10 Thread Fernando Rodríguez
El mié, 09-07-2008 a las 06:40 -0700, urukay escribió: > > this should work: > > def get_authors(self): > return self.authors.all() Thanks Radovan. Shouldn't it be self.authors.objects.all()? --~--~-~--~~~---~--~~ You received this message because you are

Re: list_display a Many to Many field

2008-07-09 Thread urukay
this should work: def get_authors(self): return self.authors.all() list_display = ('title', 'Publisher', 'publicationDate', 'get_authors' ) Radovan Fernando Rodríguez wrote: > > > Hi, > > I'm trying to display a many to many field in the admin interface. > > This is my model: > > cl