13 lines
354 B
Python
13 lines
354 B
Python
from wagtail.contrib.modeladmin.options import ModelAdmin, modeladmin_register
|
|
from .models import BasicKnowledge
|
|
|
|
|
|
class InstrumentAdmin(ModelAdmin):
|
|
model = BasicKnowledge
|
|
menu_label = 'Instruments'
|
|
list_display = ('title', 'new_type', 'status_string')
|
|
search_fields = ('title', 'new_type__name')
|
|
|
|
|
|
modeladmin_register(InstrumentAdmin)
|