more filter->list(filter
This commit is contained in:
parent
67b2fd698b
commit
b8f191b3c9
4 changed files with 7 additions and 7 deletions
|
|
@ -806,7 +806,7 @@ class Item(models.Model):
|
|||
qs = Annotation.objects.filter(item=self).exclude(findvalue=None)
|
||||
qs = qs.filter(layer=i)
|
||||
qs = qs.order_by('start')
|
||||
save(i, u'\n'.join(filter(None, [l.findvalue for l in qs])))
|
||||
save(i, u'\n'.join(list(filter(None, [l.findvalue for l in qs]))))
|
||||
layer_keys.append(i)
|
||||
elif i != '*' and i not in self.facet_keys:
|
||||
value = self.get(i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue