From fedfcf27b51a223d1530847268ea03003e4af1bf Mon Sep 17 00:00:00 2001 From: Benjamin Graillot Date: Mon, 2 Sep 2019 16:09:11 +0000 Subject: [PATCH] [note] Update normalize algorithm --- apps/note/models/notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/note/models/notes.py b/apps/note/models/notes.py index d83514bb..debd6b88 100644 --- a/apps/note/models/notes.py +++ b/apps/note/models/notes.py @@ -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): """