From 76ffb649a37a9d1a1b9169c18b86d52ea1f36112 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 14 May 2021 22:56:46 -0400 Subject: [PATCH] Don't show extra rows for admin inlines --- tasks/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/admin.py b/tasks/admin.py index 8d714d4..46ea8a5 100644 --- a/tasks/admin.py +++ b/tasks/admin.py @@ -6,14 +6,17 @@ from .models import Tool, Task, Event, GroupTaskSubscription, GroupToolSubscript class GroupTaskSubscriptionInline(admin.TabularInline): model = GroupTaskSubscription + extra = 0 class GroupToolSubscriptionInline(admin.TabularInline): model = GroupToolSubscription + extra = 0 class EventInline(admin.TabularInline): model = Event + extra = 0 @admin.register(Task)