some sort names are not lower case, fixes #3219

This commit is contained in:
j 2019-06-28 13:06:00 +02:00
parent eec8a6c178
commit f0217ef9eb
3 changed files with 3 additions and 3 deletions

View file

@ -192,7 +192,7 @@ class Document(models.Model):
sort_value = u'; '.join([get_name_sort(name) for name in values])
if not sort_value:
sort_value = u''
return sort_value
return sort_value.lower()
def set_value(s, name, value):
if isinstance(value, string_types):

View file

@ -903,7 +903,7 @@ class Item(models.Model):
sort_value = u'; '.join([get_name_sort(name) for name in values])
if not sort_value:
sort_value = u''
return sort_value
return sort_value.lower()
def set_value(s, name, value):
if isinstance(value, string_types):

View file

@ -22,7 +22,7 @@ def get_name_sort(name, sortname=None):
if sortname:
person.sortname = sortname
person.save()
sortname = unicodedata.normalize('NFKD', person.sortname).lower()
sortname = unicodedata.normalize('NFKD', person.sortname)
else:
sortname = u''
return sortname