From c176f6fc7bdf2ca95eaf7274341fe6335260a21c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 10 Oct 2011 15:25:10 +0200 Subject: [PATCH] update sort name --- pandora/event/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/event/views.py b/pandora/event/views.py index 49dc7ae4d..e0f28b8df 100644 --- a/pandora/event/views.py +++ b/pandora/event/views.py @@ -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: