empty years

This commit is contained in:
j 2012-03-27 19:42:49 +02:00
commit 494f5cfa0b
2 changed files with 5 additions and 2 deletions

View file

@ -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):