padding
This commit is contained in:
parent
911579ce9e
commit
800c7a96b3
2 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ def sort_string(string):
|
|||
|
||||
def sort_title(title):
|
||||
|
||||
#title = title.replace(u'Æ', 'Ae')
|
||||
title = title.replace(u'Æ', 'Ae')
|
||||
if isinstance(title, str):
|
||||
title = unicode(title)
|
||||
title = sort_string(title)
|
||||
|
|
|
@ -28,7 +28,7 @@ def editName(request):
|
|||
person = get_object_or_404_json(models.Person, pk=ox.from26(data['id']))
|
||||
response = json_response()
|
||||
if 'sortname' in data:
|
||||
person.sortname = utils.sort_string(data['sortname'])
|
||||
person.sortname = data['sortname']
|
||||
person.edited = True
|
||||
person.save()
|
||||
response['data'] = person.json()
|
||||
|
|
Loading…
Reference in a new issue