add manager for Related class; rename get_on_air as on_air + can retrieve by last logs instead of date

This commit is contained in:
bkfox
2016-07-25 15:03:54 +02:00
parent 62380c054d
commit 960fcab65d
7 changed files with 127 additions and 62 deletions

View File

@ -74,7 +74,7 @@ class DiffusionsMenu(GenericMenu):
def get_queryset(self):
return programs.Diffusion.objects.filter(
type = programs.Diffusion.Type.normal,
start__contains = tz.now().date() + tz.timedelta(days=2),
start__contains = tz.now().date(),
).order_by('start')
def get_title(self, item):