fix config, add controler

This commit is contained in:
bkfox
2015-11-09 14:38:44 +01:00
parent c5c566d485
commit ecde02725e
5 changed files with 58 additions and 27 deletions

View File

@ -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)

View File

@ -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'