kers/events/admin.py

13 lines
270 B
Python
Raw Normal View History

2020-07-21 22:24:45 +02:00
from django.contrib import admin
2020-07-22 04:08:30 +02:00
from .models import Event, EventRegistration
2020-07-22 05:02:01 +02:00
class RegistrationInline(admin.StackedInline):
model = EventRegistration
class EventAdmin(admin.ModelAdmin):
inlines = [RegistrationInline]
admin.site.register(Event, EventAdmin)