From e4fa3ac5a201273262253bb2489102b83553cf60 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 17 Jun 2018 12:23:25 +0200 Subject: [PATCH] Add comments in export --- manuels/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manuels/admin.py b/manuels/admin.py index 19e1863..fcd4988 100644 --- a/manuels/admin.py +++ b/manuels/admin.py @@ -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)