On corrige la détection des users anonymes
This commit is contained in:
parent
874c1779f8
commit
3d70de9c1b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user