Export other editor

This commit is contained in:
Gabriel Augendre 2018-06-24 17:33:32 +02:00
parent d4820e8b75
commit bcf031feee

View file

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