diff --git a/server/basicknowledge/wagtail_hooks.py b/server/basicknowledge/wagtail_hooks.py index 3065391a..a287f519 100644 --- a/server/basicknowledge/wagtail_hooks.py +++ b/server/basicknowledge/wagtail_hooks.py @@ -8,11 +8,18 @@ class InstrumentAdmin(ModelAdmin): list_display = ('title', 'new_type', 'status_string') search_fields = ('title', 'new_type__name') + class InstrumentCategoryAdmin(ModelAdmin): model = InstrumentCategory + list_display = ('name', 'background', 'foreground') + class InstrumentTypeAdmin(ModelAdmin): model = InstrumentType + list_display = ('name', 'category',) + inspect_view_enabled = True + inspect_view_fields = ('name', 'category', 'instruments',) + modeladmin_register(InstrumentAdmin) modeladmin_register(InstrumentCategoryAdmin)