This commit is contained in:
j 2016-09-18 16:31:14 +02:00
parent 803dcc6382
commit 2c6609b308

View file

@ -14,7 +14,7 @@ from . import managers
def get_title_sort(title): def get_title_sort(title):
if isinstance(title, bytes): if isinstance(title, bytes):
title = title.decde('utf-8') title = title.decode('utf-8')
title = unicodedata.normalize('NFKD', title).strip() title = unicodedata.normalize('NFKD', title).strip()
if title: if title:
title, created = Title.objects.get_or_create(title=title) title, created = Title.objects.get_or_create(title=title)