Fix #65 #88
@@ -1,6 +1,6 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import EventStatus, EventFlag, Event, OneClickAction, Participant, TrashedParticipant
|
||||
from .models import EventStatus, EventFlag, EventChange, Event, OneClickAction, Participant, TrashedParticipant
|
||||
|
||||
|
||||
@admin.register(EventStatus)
|
||||
@@ -8,6 +8,11 @@ class EventStatusAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
class EventChangeInline(admin.TabularInline):
|
||||
model = EventChange
|
||||
extra = 1
|
||||
|
||||
|
||||
class EventFlagInline(admin.TabularInline):
|
||||
model = EventFlag
|
||||
extra = 1
|
||||
@@ -19,7 +24,7 @@ class EventParticipantInline(admin.TabularInline):
|
||||
|
||||
@admin.register(Event)
|
||||
class EventAdmin(admin.ModelAdmin):
|
||||
inlines = [EventFlagInline, EventParticipantInline]
|
||||
inlines = [EventChangeInline, EventFlagInline, EventParticipantInline]
|
||||
ordering = ['sport', 'number']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user