diff --git a/apps/note/models/notes.py b/apps/note/models/notes.py index e5d9c13c9f6b684f38215555a910de7b4746b9dc..604e81ae8f4622e25a7074ff6f51fd1fc7846663 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()