from django.contrib import admin from .models import Event, Speaker, EventType, EventInstance @admin.register(EventInstance) class EventInstanceAdmin(admin.ModelAdmin): pass @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 ]