Add comments in export

This commit is contained in:
Gabriel Augendre 2018-06-17 12:23:25 +02:00
parent 9fd984d30c
commit e4fa3ac5a2

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',
fields = ('title', 'authors', 'editor__name', 'publication_year', 'isbn', 'comments',
'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')
'previously_acquired', 'teacher__first_name', 'teacher__last_name', 'comments')
@admin.register(Book)