From 9c6fa7d5ce910f3a43fe541b95ccb8807bb6dc73 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 7 Jul 2024 12:27:14 +0200 Subject: [PATCH] =?UTF-8?q?am=C3=A9lioration=20de=20la=20d=C3=A9tection=20?= =?UTF-8?q?des=20alias=20de=20places?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index bd7d3e8..15e9588 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -257,7 +257,7 @@ class Place(models.Model): def match(self, event): if self.aliases: - return event.location in self.aliases + return event.location.strip() in self.aliases else: return False