From 2e13356e395de2fc3258224477d3c5bfa8db2001 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 5 Sep 2020 13:52:03 +0200 Subject: [PATCH] Fix a bug in note saving --- apps/note/models/notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/note/models/notes.py b/apps/note/models/notes.py index e5d9c13c..604e81ae 100644 --- a/apps/note/models/notes.py +++ b/apps/note/models/notes.py @@ -102,7 +102,7 @@ class Note(PolymorphicModel): super().save(*args, **kwargs) - if not Alias.objects.filter(name=str(self)).exists(): + if not Alias.objects.filter(normalized_name=Alias.normalize(str(self))).exists(): a = Alias(name=str(self)) a.clean()