normalize

This commit is contained in:
j 2011-10-11 20:18:56 +02:00
commit b321656bff
3 changed files with 3 additions and 1 deletions

View file

@ -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