forked from 0x2620/pandora
typo
This commit is contained in:
parent
803dcc6382
commit
2c6609b308
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue