From 5a63073cf782997495562fda699805c2f5c0a283 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 31 Dec 2023 19:05:12 +0100 Subject: [PATCH] =?UTF-8?q?correction=20d'un=20bug=20(quand=20on=20modifie?= =?UTF-8?q?=20=C3=A0=20la=20main,=20la=20date=20est=20modifi=C3=A9e)?= 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 444c9a7..77154f1 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -260,7 +260,7 @@ class Event(models.Model): self.created_date = now if self.is_in_importation_process(): self.imported_date = now - if self.modified_date is None: + if self.modified_date is None or not self.is_in_importation_process(): self.modified_date = now