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 BookResource(resources.ModelResource):
class Meta: class Meta:
model = Book 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') 'price', 'previously_acquired', 'teacher__first_name', 'teacher__last_name', 'level__name', 'field')