empty years
This commit is contained in:
parent
b515feb456
commit
494f5cfa0b
2 changed files with 5 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ class Person(models.Model):
|
|||
|
||||
def update_sort_name():
|
||||
for p in Person.objects.all():
|
||||
_sortname = ox.get_sort_name(p.name)
|
||||
_sortname = ox.get_sort_name(p.name).lower()
|
||||
_sortname = unicodedata.normalize('NFKD', _sortname)
|
||||
if (not p.edited and _sortname != p.sortname) or \
|
||||
(p.edited and _sortname == p.sortname):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue