diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index 54c1d3e..0cab685 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -387,7 +387,7 @@ class Place(models.Model): return Event.objects.filter(start_day__gte=datetime.now()).filter(exact_location=self).count() def match(self, event): - if self.aliases: + if self.aliases and event.location: return event.location.strip() in self.aliases else: return False