forked from rc/aircox
cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: rc/aircox#131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
This commit is contained in:
@ -22,6 +22,7 @@ class ScheduleInline(admin.TabularInline):
|
||||
model = Schedule
|
||||
form = ScheduleInlineForm
|
||||
readonly_fields = ("timezone",)
|
||||
autocomplete_fields = ("initial",)
|
||||
extra = 1
|
||||
|
||||
|
||||
@ -46,7 +47,10 @@ class ScheduleAdmin(admin.ModelAdmin):
|
||||
"duration",
|
||||
"initial",
|
||||
]
|
||||
list_editable = ["time", "duration", "initial"]
|
||||
list_editable = ("time", "duration", "initial")
|
||||
autocomplete_fields = ("initial",)
|
||||
search_fields = ("program__title",)
|
||||
ordering = ("program__title", "initial", "date")
|
||||
|
||||
def get_readonly_fields(self, request, obj=None):
|
||||
if obj:
|
||||
|
Reference in New Issue
Block a user