facets need to be decoded too

This commit is contained in:
j 2012-04-24 19:09:10 +02:00
parent 5cee28bef1
commit 079b0051c0

View file

@ -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: