fix config, add controler
This commit is contained in:
@ -24,7 +24,7 @@ class ScheduleInline (admin.TabularInline):
|
||||
extra = 1
|
||||
|
||||
class StreamInline (admin.TabularInline):
|
||||
fields = ['delay', 'time_start', 'time_end']
|
||||
fields = ['delay', 'begin', 'end']
|
||||
model = Stream
|
||||
extra = 1
|
||||
|
||||
@ -64,7 +64,7 @@ class SoundAdmin (NameableAdmin):
|
||||
|
||||
@admin.register(Stream)
|
||||
class StreamAdmin (admin.ModelAdmin):
|
||||
list_display = ('id', 'program', 'delay', 'time_start', 'time_end')
|
||||
list_display = ('id', 'program', 'delay', 'begin', 'end')
|
||||
|
||||
|
||||
@admin.register(Program)
|
||||
|
@ -201,13 +201,13 @@ class Stream (models.Model):
|
||||
blank = True, null = True,
|
||||
help_text = _('plays this playlist at least every delay')
|
||||
)
|
||||
time_start = models.TimeField(
|
||||
_('start'),
|
||||
begin = models.TimeField(
|
||||
_('begin'),
|
||||
blank = True, null = True,
|
||||
help_text = _('used to define a time range this stream is'
|
||||
'played')
|
||||
)
|
||||
time_end = models.TimeField(
|
||||
end = models.TimeField(
|
||||
_('end'),
|
||||
blank = True, null = True,
|
||||
help_text = _('used to define a time range this stream is'
|
||||
|
Reference in New Issue
Block a user