diff --git a/events/admin.py b/events/admin.py index a1d2300..3509e89 100644 --- a/events/admin.py +++ b/events/admin.py @@ -2,5 +2,11 @@ from django.contrib import admin from .models import Event, EventRegistration -admin.site.register(Event) -admin.site.register(EventRegistration) + +class RegistrationInline(admin.StackedInline): + model = EventRegistration + +class EventAdmin(admin.ModelAdmin): + inlines = [RegistrationInline] + +admin.site.register(Event, EventAdmin)