update sort name
This commit is contained in:
parent
b019cda004
commit
c176f6fc7b
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@ def editEvent(request):
|
||||||
conflict = True
|
conflict = True
|
||||||
conflict_names.append(name)
|
conflict_names.append(name)
|
||||||
if not conflict:
|
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',
|
for key in ('name', 'start', 'startTime', 'end', 'endTime', 'duration', 'durationTime',
|
||||||
'type', 'alternativeNames'):
|
'type', 'alternativeNames'):
|
||||||
if key in data:
|
if key in data:
|
||||||
|
|
Loading…
Reference in a new issue