Easy edition of level order in admin list

This commit is contained in:
Gabriel Augendre 2019-04-06 19:32:47 +02:00
parent f2428c5fe3
commit 58da7b5f05

View file

@ -27,7 +27,9 @@ class TeacherAdmin(ExportMixin, admin.ModelAdmin):
@admin.register(Level)
class LevelAdmin(admin.ModelAdmin):
pass
list_display = ['name', 'order']
list_editable = ['order']
list_display_links = ['name']
class BookResource(resources.ModelResource):