Inline events in the admin interface
This commit is contained in:
parent
dc4bfcca29
commit
c790296c70
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user