From ebc123a18682cf53ec8a11926e7f9a1b4573bf43 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 11 Oct 2011 16:39:28 +0200 Subject: [PATCH] dont expand title_sort --- pandora/title/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora/title/views.py b/pandora/title/views.py index 83ad7eb9..9f8f5be3 100644 --- a/pandora/title/views.py +++ b/pandora/title/views.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 from __future__ import division +import unicodedata from django.db.models import Max, Min @@ -28,7 +29,8 @@ def editTitle(request): title = get_object_or_404_json(models.Title, pk=ox.from26(data['id'])) response = json_response() if 'titleSort' in data: - title.title_sort = utils.sort_string(data['titleSort']) + title.title_sort = data['titleSort'] + title.title_sort = unicodedata.normalize('NFKD', title.title_sort) title.save() response['data'] = title.json() return render_to_json_response(response) @@ -54,7 +56,6 @@ def order_query(qs, sort): if operator != '-': operator = '' key = { - 'title': 'title_sort', 'titleSort': 'title_sort', }.get(e['key'], e['key']) order = '%s%s' % (operator, key)