From 5a76fc8aea26dd5ea853b854056c35558dc91ef4 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 20 Oct 2024 06:13:42 +0200 Subject: [PATCH] =?UTF-8?q?Si=20la=20cat=C3=A9gorie=20est=20d=C3=A9faut,?= =?UTF-8?q?=20on=20autorise=20aussi=20la=20modification=20des=20cat=C3=A9g?= =?UTF-8?q?ories=20=C3=A0=20la=20cr=C3=A9ation?= 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 5b2a83c..7f7dd06 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -718,7 +718,7 @@ class Event(models.Model): self.exact_location = p break # try to detect category - if not self.category: + if not self.category or self.category.name == Category.default_name: CategorisationRule.apply_rules(self) def save(self, *args, **kwargs):