From d3896c21179a8c3e2cdaefbda6620688f1a57dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Wed, 19 Oct 2016 14:04:47 +0200 Subject: [PATCH] fix logic error --- planning/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planning/models.py b/planning/models.py index dd17884..3fa6c7f 100644 --- a/planning/models.py +++ b/planning/models.py @@ -31,7 +31,7 @@ class Room(models.Model): @property def talks_by_date(self): - return self.talks.filter(start_date__isnull=False).exclude(Q(duration=0) | Q(event__duration=0)).order_by('start_date').all() + return self.talks.filter(start_date__isnull=False).exclude(duration=0, event__duration=0).order_by('start_date').all() @property def unscheduled_talks(self):