1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +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) 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 = Alias(name=str(self))
a.clean() a.clean()