update sort name

This commit is contained in:
j 2011-10-10 15:25:10 +02:00
parent b019cda004
commit c176f6fc7b

View file

@ -76,6 +76,8 @@ def editEvent(request):
conflict = True
conflict_names.append(name)
if not conflict:
if 'name' in data and event.name_sort == unicodedata.normalize('NFKD', event.name):
event.name_sort = unicodedata.normalize('NFKD', data['name'])
for key in ('name', 'start', 'startTime', 'end', 'endTime', 'duration', 'durationTime',
'type', 'alternativeNames'):
if key in data: