from django.contrib import admin from .models import Instrument, SubInstrument class SubInstrumentAdmin(admin.ModelAdmin): list_display = ("__str__", "itype", "parent") admin.site.register(Instrument) admin.site.register(SubInstrument, SubInstrumentAdmin)