From 3d70de9c1b8cdb2c7fab1114b876e94342474ea5 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Thu, 5 Dec 2024 18:44:55 +0100 Subject: [PATCH] =?UTF-8?q?On=20corrige=20la=20d=C3=A9tection=20des=20user?= =?UTF-8?q?s=20anonymes?= 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 b0d4191..5a5a969 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -935,7 +935,7 @@ class Event(models.Model): self.no_modification_date_changed = True def set_processing_user(self, user): - if user.is_anonymous: + if user is None or user.is_anonymous: self.processing_user = None else: self.processing_user = user