1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 23:42:25 +00:00

[note] Update normalize algorithm

This commit is contained in:
Benjamin Graillot 2019-09-02 16:09:11 +00:00
parent 7a7cc2bfef
commit fedfcf27b5

View File

@ -202,7 +202,7 @@ class Alias(models.Model):
for char in unicodedata.normalize('NFKD', string.casefold())
if all(not unicodedata.category(char).startswith(cat)
for cat in {'M', 'P', 'Z', 'C'})
)
).casefold()
def save(self, *args, **kwargs):
"""