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

@ -13,6 +13,7 @@ from item import utils
import managers
def get_title_sort(title):
title = unicodedata.normalize('NFKD', title)
title, created = Title.objects.get_or_create(title=title)
sorttitle = unicodedata.normalize('NFKD', title.sorttitle)
return sorttitle