diff --git a/tasks/admin.py b/tasks/admin.py index f2424f0..8d714d4 100644 --- a/tasks/admin.py +++ b/tasks/admin.py @@ -12,9 +12,13 @@ class GroupToolSubscriptionInline(admin.TabularInline): model = GroupToolSubscription +class EventInline(admin.TabularInline): + model = Event + + @admin.register(Task) class TaskAdmin(MarkdownxModelAdmin): - inlines = [GroupTaskSubscriptionInline] + inlines = [GroupTaskSubscriptionInline, EventInline] prepopulated_fields = {"slug": ("name",)} @@ -23,4 +27,4 @@ class ToolAdmin(admin.ModelAdmin): inlines = [GroupToolSubscriptionInline] -admin.site.register(Event) +