This commit is contained in:
j 2011-10-11 21:30:43 +02:00
parent 911579ce9e
commit 800c7a96b3
2 changed files with 2 additions and 2 deletions

View file

@ -202,7 +202,7 @@ def sort_string(string):
def sort_title(title): def sort_title(title):
#title = title.replace(u'Æ', 'Ae') title = title.replace(u'Æ', 'Ae')
if isinstance(title, str): if isinstance(title, str):
title = unicode(title) title = unicode(title)
title = sort_string(title) title = sort_string(title)

View file

@ -28,7 +28,7 @@ def editName(request):
person = get_object_or_404_json(models.Person, pk=ox.from26(data['id'])) person = get_object_or_404_json(models.Person, pk=ox.from26(data['id']))
response = json_response() response = json_response()
if 'sortname' in data: if 'sortname' in data:
person.sortname = utils.sort_string(data['sortname']) person.sortname = data['sortname']
person.edited = True person.edited = True
person.save() person.save()
response['data'] = person.json() response['data'] = person.json()