Sunday, August 28, 2011

M2M fields in Django Admin listing Page

def get_authors(self,obj):
return obj.authors.all()

list_display
= ('title', 'Publisher', 'publicationDate','get_authors' )

No comments:

Post a Comment