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