On corrige la détection des users anonymes

This commit is contained in:
Jean-Marie Favreau 2024-12-05 18:44:55 +01:00
parent 874c1779f8
commit 3d70de9c1b

View File

@ -935,7 +935,7 @@ class Event(models.Model):
self.no_modification_date_changed = True self.no_modification_date_changed = True
def set_processing_user(self, user): def set_processing_user(self, user):
if user.is_anonymous: if user is None or user.is_anonymous:
self.processing_user = None self.processing_user = None
else: else:
self.processing_user = user self.processing_user = user