Update the admin view of the new models
This commit is contained in:
parent
2b3f9c7ae0
commit
b0a57abaa8
|
|
@ -8,11 +8,18 @@ class InstrumentAdmin(ModelAdmin):
|
||||||
list_display = ('title', 'new_type', 'status_string')
|
list_display = ('title', 'new_type', 'status_string')
|
||||||
search_fields = ('title', 'new_type__name')
|
search_fields = ('title', 'new_type__name')
|
||||||
|
|
||||||
|
|
||||||
class InstrumentCategoryAdmin(ModelAdmin):
|
class InstrumentCategoryAdmin(ModelAdmin):
|
||||||
model = InstrumentCategory
|
model = InstrumentCategory
|
||||||
|
list_display = ('name', 'background', 'foreground')
|
||||||
|
|
||||||
|
|
||||||
class InstrumentTypeAdmin(ModelAdmin):
|
class InstrumentTypeAdmin(ModelAdmin):
|
||||||
model = InstrumentType
|
model = InstrumentType
|
||||||
|
list_display = ('name', 'category',)
|
||||||
|
inspect_view_enabled = True
|
||||||
|
inspect_view_fields = ('name', 'category', 'instruments',)
|
||||||
|
|
||||||
|
|
||||||
modeladmin_register(InstrumentAdmin)
|
modeladmin_register(InstrumentAdmin)
|
||||||
modeladmin_register(InstrumentCategoryAdmin)
|
modeladmin_register(InstrumentCategoryAdmin)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue