Fix a bug in note saving

This commit is contained in:
Yohann D'ANELLO 2020-09-05 13:52:03 +02:00
parent d273193b1d
commit 2e13356e39
1 changed files with 1 additions and 1 deletions

View File

@ -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()