From 0719735feb5824ba7d009e79e001ae09e2f36970 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 May 2012 10:12:41 +0200 Subject: [PATCH] compute proper facet sort value --- pandora/item/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index d8dab72b..6ca18224 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -816,7 +816,7 @@ class Item(models.Model): Facet.objects.filter(item=self, key=key, value__in=removed_values).delete() for value in current_values: if value not in saved_values: - sortvalue = value.lower()[:900] + sortvalue = utils.sort_string(value).lower()[:900] Facet.objects.get_or_create(item=self, key=key, value=value, sortvalue=sortvalue) def update_layer_facets(self): @@ -864,7 +864,7 @@ class Item(models.Model): sortvalue = value if key in self.person_keys + ['name']: sortvalue = get_name_sort(value) - sortvalue = sortvalue.lower()[:900] + sortvalue = utils.sort_string(value).lower()[:900] Facet.objects.get_or_create(item=self, key=key, value=value, sortvalue=sortvalue) self.update_layer_facets()