Inline events in the admin interface

This commit is contained in:
Adam Goldsmith 2021-05-14 22:56:26 -04:00
parent dc4bfcca29
commit c790296c70

View File

@ -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)