forked from 0x2620/pandora
turn <br> into space
This commit is contained in:
parent
f73fee2713
commit
97d8344822
1 changed files with 1 additions and 1 deletions
|
@ -1009,7 +1009,7 @@ class Item(models.Model):
|
|||
def update_layer_facet(self, key):
|
||||
current_values = [a['value']
|
||||
for a in self.annotations.filter(layer=key).distinct().values('value')]
|
||||
current_values = [ox.decode_html(ox.strip_tags(v)) for v in current_values]
|
||||
current_values = [ox.decode_html(ox.strip_tags(v.replace('<br>', ' '))) 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:
|
||||
|
|
Loading…
Reference in a new issue