mirror of https://gitlab.crans.org/bde/nk20
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)
|
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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue