Allow edit of done in admin. Close #12
This commit is contained in:
parent
1fe1db483d
commit
d28ce54bc8
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ class BookAdmin(ExportMixin, admin.ModelAdmin):
|
||||||
resource_class = BookResource
|
resource_class = BookResource
|
||||||
list_display = ['level', 'field', 'title', 'authors', 'editor', 'publication_year', 'isbn',
|
list_display = ['level', 'field', 'title', 'authors', 'editor', 'publication_year', 'isbn',
|
||||||
'price', 'previously_acquired', 'teacher', 'done']
|
'price', 'previously_acquired', 'teacher', 'done']
|
||||||
|
list_editable = ['done']
|
||||||
list_filter = ['done', 'editor', 'previously_acquired', 'teacher', 'level']
|
list_filter = ['done', 'editor', 'previously_acquired', 'teacher', 'level']
|
||||||
list_display_links = ['title']
|
list_display_links = ['title']
|
||||||
fieldsets = [
|
fieldsets = [
|
||||||
|
@ -79,5 +80,6 @@ class SuppliesResource(resources.ModelResource):
|
||||||
class SuppliesRequirementAdmin(ExportMixin, admin.ModelAdmin):
|
class SuppliesRequirementAdmin(ExportMixin, admin.ModelAdmin):
|
||||||
resource_class = SuppliesResource
|
resource_class = SuppliesResource
|
||||||
list_display = ['id', 'teacher', 'level', 'fields', 'supplies', 'done']
|
list_display = ['id', 'teacher', 'level', 'fields', 'supplies', 'done']
|
||||||
|
list_editable = ['done']
|
||||||
readonly_fields = ['created_at', 'updated_at']
|
readonly_fields = ['created_at', 'updated_at']
|
||||||
list_filter = ['done', 'teacher', 'level']
|
list_filter = ['done', 'teacher', 'level']
|
||||||
|
|
Loading…
Reference in a new issue