Commit fbd38d44 authored by Simon Daron's avatar Simon Daron
Browse files

Attempt to add schedule on what's on air

parent ec14ca26
......@@ -59,6 +59,10 @@ class Emission(models.Model):
return reverse('emission-view',
kwargs={'slug': str(self.slug)})
def get_schedules(self):
return Schedule.objects.filter(emission=self).order_by('datetime')
class Schedule(models.Model):
DAY_HOUR_START = 6
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment