From 079b0051c0d6be1a79998c24f33b073ad5be6282 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 24 Apr 2012 19:09:10 +0200 Subject: [PATCH] facets need to be decoded too --- pandora/item/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 95f078e3b..c863bc2d3 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -853,6 +853,7 @@ class Item(models.Model): else: current_values = [unicode(current_values)] current_values = list(set(current_values)) + current_values = [ox.decodeHtml(v) for v in current_values] saved_values = [i.value for i in Facet.objects.filter(item=self, key=key)] removed_values = filter(lambda i: i not in current_values, saved_values) if removed_values: