remove cancelled talks from schedule

This commit is contained in:
Élie Bouttier 2017-11-22 22:37:27 +01:00
parent f8a2b3436e
commit fc23caad8a
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ class Program:
self.conference = Conference.objects.get(site=self.site)
self.talks = Talk.objects.\
exclude(category__label__exact='').\
exclude(confirmed=False).\
filter(site=self.site, room__isnull=False, start_date__isnull=False).\
filter(Q(duration__gt=0) | Q(category__duration__gt=0)).\
prefetch_related(