add script to import playlists to sounds or to diffusions
This commit is contained in:
@ -229,8 +229,7 @@ class Playlist(sections.List):
|
||||
message_empty = ''
|
||||
|
||||
def get_object_list(self):
|
||||
tracks = programs.Track.objects \
|
||||
.filter(diffusion = self.object.related) \
|
||||
tracks = programs.Track.get_for(object = self.object.related) \
|
||||
.order_by('position')
|
||||
return [ sections.ListItem(title=track.name, content=track.artist)
|
||||
for track in tracks ]
|
||||
@ -336,3 +335,10 @@ class Schedule(Diffusions):
|
||||
return None
|
||||
|
||||
|
||||
class Logs(Schedule):
|
||||
"""
|
||||
Return a list of played stream sounds and diffusions.
|
||||
"""
|
||||
template_name = 'aircox/website/schedule.html'
|
||||
# HERE -- + rename aircox/website/schedule to dated_list
|
||||
|
||||
|
Reference in New Issue
Block a user