fix un cas rare de valeur non définie
This commit is contained in:
parent
4541366af1
commit
54e3af00cd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user