From 185f6ce4e31c2bbd090a8d53071799e95e0241be Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 10 Mar 2020 01:07:37 +0100 Subject: [PATCH] Alias have to be exact --- apps/logs/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/logs/signals.py b/apps/logs/signals.py index 85f0c585..89354210 100644 --- a/apps/logs/signals.py +++ b/apps/logs/signals.py @@ -63,7 +63,7 @@ def save_object(sender, instance, **kwargs): # IMPORTANT : l'utilisateur dans la VM doit ĂȘtre un des alias note du respo info ip = "127.0.0.1" username = Alias.normalize(getpass.getuser()) - note = NoteUser.objects.filter(alias__normalized_name__regex="^" + username + "$") + note = NoteUser.objects.filter(alias__normalized_name="^" + username + "$") if not note.exists(): print("WARNING: A model attempted to be saved in the DB, but the actor is unknown: " + username) else: