Skip to content
Snippets Groups Projects
Commit 2e13356e authored by ynerant's avatar ynerant
Browse files

Fix a bug in note saving

parent d273193b
No related branches found
No related tags found
1 merge request!110Few fixes
Pipeline #8642 passed with warnings with stages
in 9 minutes and 59 seconds
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment