Skip to content
Snippets Groups Projects
Commit fedfcf27 authored by Benjamin Graillot's avatar Benjamin Graillot
Browse files

[note] Update normalize algorithm

parent 7a7cc2bf
No related branches found
No related tags found
No related merge requests found
Pipeline #7670 passed with stage
in 3 minutes and 5 seconds
...@@ -202,7 +202,7 @@ class Alias(models.Model): ...@@ -202,7 +202,7 @@ class Alias(models.Model):
for char in unicodedata.normalize('NFKD', string.casefold()) for char in unicodedata.normalize('NFKD', string.casefold())
if all(not unicodedata.category(char).startswith(cat) if all(not unicodedata.category(char).startswith(cat)
for cat in {'M', 'P', 'Z', 'C'}) for cat in {'M', 'P', 'Z', 'C'})
) ).casefold()
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
""" """
......
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