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:
parent
d273193b1d
commit
2e13356e39
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user