summaryrefslogtreecommitdiff
path: root/program/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'program/admin.py')
-rw-r--r--program/admin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/admin.py b/program/admin.py
index e6c331a..1323697 100644
--- a/program/admin.py
+++ b/program/admin.py
@@ -58,11 +58,13 @@ class NoteAdmin(admin.ModelAdmin):
class TimeSlotInline(admin.TabularInline):
model = TimeSlot
+ ordering = ('-end',)
class ProgramSlotAdmin(admin.ModelAdmin):
actions = ('renew',)
inlines = (TimeSlotInline,)
+ fields = (('rrule', 'byweekday'), ('dstart', 'tstart', 'tend'), 'until', 'is_repetition', 'automation_id')
list_display = ('show', 'byweekday', 'rrule', 'tstart', 'tend', 'until')
list_filter = ('byweekday', 'rrule', 'is_repetition', 'is_active')
ordering = ('byweekday', 'dstart')
@@ -83,6 +85,7 @@ class ProgramSlotAdmin(admin.ModelAdmin):
class ProgramSlotInline(admin.TabularInline):
model = ProgramSlot
+ ordering = ('-until',)
class ShowAdmin(admin.ModelAdmin):