from django.contrib import admin from .models import Event, Speaker, EventType @admin.register(EventType) class EventTypeAdmin(admin.ModelAdmin): pass @admin.register(Speaker) class SpeakerAdmin(admin.ModelAdmin): pass class SpeakerInline(admin.StackedInline): model = Speaker.events.through @admin.register(Event) class EventAdmin(admin.ModelAdmin): list_display = [ 'title', 'event_type', ] inlines = [ SpeakerInline ]