forked from 0x2620/pandora
facets need to be decoded too
This commit is contained in:
parent
5cee28bef1
commit
079b0051c0
1 changed files with 1 additions and 0 deletions
|
@ -853,6 +853,7 @@ class Item(models.Model):
|
||||||
else:
|
else:
|
||||||
current_values = [unicode(current_values)]
|
current_values = [unicode(current_values)]
|
||||||
current_values = list(set(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)]
|
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)
|
removed_values = filter(lambda i: i not in current_values, saved_values)
|
||||||
if removed_values:
|
if removed_values:
|
||||||
|
|
Loading…
Reference in a new issue