Export editor name

This commit is contained in:
Gabriel Augendre 2018-05-24 00:08:09 +02:00
parent a6d1abf2af
commit 0f4d66342e

View file

@ -33,7 +33,7 @@ class LevelAdmin(admin.ModelAdmin):
class BookResource(resources.ModelResource):
class Meta:
model = Book
fields = ('title', 'authors', 'editor', 'publication_year', 'isbn',
fields = ('title', 'authors', 'editor__name', 'publication_year', 'isbn',
'price', 'previously_acquired', 'teacher__first_name', 'teacher__last_name', 'level__name', 'field')