fix logic error

This commit is contained in:
Élie Bouttier 2016-10-19 14:04:47 +02:00
parent 365941ccc3
commit d3896c2117
1 changed files with 1 additions and 1 deletions

View File

@ -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):