From dcf3acbd44b1f61fde284bd5b4ce735c5837aa3a Mon Sep 17 00:00:00 2001 From: j Date: Sat, 30 Jul 2016 12:01:34 +0200 Subject: [PATCH] store facets in NFKD --- pandora/item/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 06fc891aa..ea0953d6f 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1066,6 +1066,7 @@ class Item(models.Model): for a in Entity.objects.filter(id__in=[ox.fromAZ(i) for i in current_values]).values('name') ] current_values = [ox.decode_html(ox.strip_tags(v.replace('
', ' '))) for v in current_values] + current_values = [unicodedata.normalize('NFKD', v) for v in current_values] self.update_facet_values(key, current_values) def update_facet_values(self, key, current_values):