From 52fc5450a18fac8e4b47a8b9fcae024a2a64b7bf Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 6 Apr 2019 19:28:27 +0200 Subject: [PATCH] Add consumable in book admin --- manuels/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manuels/admin.py b/manuels/admin.py index 88124c5..033eb06 100644 --- a/manuels/admin.py +++ b/manuels/admin.py @@ -45,13 +45,13 @@ class BookResource(resources.ModelResource): class BookAdmin(ExportMixin, admin.ModelAdmin): resource_class = BookResource list_display = ['level', 'field', 'title', 'authors', 'editor', 'other_editor', 'publication_year', 'isbn', - 'price', 'previously_acquired', 'teacher', 'done'] + 'price', 'previously_acquired', 'teacher', 'done', 'consumable'] list_editable = ['done'] - list_filter = ['done', 'previously_acquired', 'level', 'editor', 'teacher'] + list_filter = ['done', 'previously_acquired', 'consumable', 'level', 'editor', 'teacher'] list_display_links = ['title'] fieldsets = [ ('Infos livre', { - 'fields': ('title', 'authors', ('editor', 'other_editor'), 'publication_year', + 'fields': ('title', 'consumable', 'authors', ('editor', 'other_editor'), 'publication_year', 'isbn', 'created_at', 'updated_at', 'comments') }), ('Élève', {