From 5e65ecdb5cd6a98442a6d1fd89dcf392050c415b Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 24 Nov 2024 12:37:20 +0100 Subject: [PATCH] =?UTF-8?q?On=20fixe=20le=20cas=20des=20=C3=A9v=C3=A9nemen?= =?UTF-8?q?ts=20sans=20description?= 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 e816b4e..8e806c7 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -2026,7 +2026,7 @@ class CategorisationRule(models.Model): if self.desc_exact: result = self.description_contains in event.description else: - result = ( + result = event.description and ( remove_accents(self.description_contains).lower() in remove_accents(event.description).lower() )