Export editor name
This commit is contained in:
parent
a6d1abf2af
commit
0f4d66342e
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue