Don't show extra rows for admin inlines
This commit is contained in:
parent
c790296c70
commit
76ffb649a3
@ -6,14 +6,17 @@ from .models import Tool, Task, Event, GroupTaskSubscription, GroupToolSubscript
|
|||||||
|
|
||||||
class GroupTaskSubscriptionInline(admin.TabularInline):
|
class GroupTaskSubscriptionInline(admin.TabularInline):
|
||||||
model = GroupTaskSubscription
|
model = GroupTaskSubscription
|
||||||
|
extra = 0
|
||||||
|
|
||||||
|
|
||||||
class GroupToolSubscriptionInline(admin.TabularInline):
|
class GroupToolSubscriptionInline(admin.TabularInline):
|
||||||
model = GroupToolSubscription
|
model = GroupToolSubscription
|
||||||
|
extra = 0
|
||||||
|
|
||||||
|
|
||||||
class EventInline(admin.TabularInline):
|
class EventInline(admin.TabularInline):
|
||||||
model = Event
|
model = Event
|
||||||
|
extra = 0
|
||||||
|
|
||||||
|
|
||||||
@admin.register(Task)
|
@admin.register(Task)
|
||||||
|
Loading…
Reference in New Issue
Block a user