normalize
This commit is contained in:
parent
bfb7bd88ba
commit
b321656bff
3 changed files with 3 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ import managers
|
|||
|
||||
|
||||
def get_name_sort(name):
|
||||
name = unicodedata.normalize('NFKD', name)
|
||||
person, created = Person.objects.get_or_create(name=name)
|
||||
sortname = unicodedata.normalize('NFKD', person.sortname)
|
||||
return sortname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue