Add comments in export
This commit is contained in:
parent
9fd984d30c
commit
e4fa3ac5a2
1 changed files with 2 additions and 2 deletions
|
@ -33,10 +33,10 @@ class LevelAdmin(admin.ModelAdmin):
|
||||||
class BookResource(resources.ModelResource):
|
class BookResource(resources.ModelResource):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Book
|
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')
|
'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',
|
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)
|
@admin.register(Book)
|
||||||
|
|
Loading…
Reference in a new issue