1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 23:42:25 +00:00

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

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