followup to 0c99cbfaac list of filters now

This commit is contained in:
j 2018-08-09 15:47:29 +01:00
parent 93afb4e465
commit cb55ebaf4c

View file

@ -117,7 +117,8 @@ class MetaClip(object):
#annotations = self.annotations.filter(layer__in=settings.CONFIG['clipLayers']) #annotations = self.annotations.filter(layer__in=settings.CONFIG['clipLayers'])
annotations = self.annotations.all() annotations = self.annotations.all()
if qs: if qs:
annotations = annotations.filter(qs) for q in qs:
annotations = annotations.filter(q)
entity_cache = {} entity_cache = {}
j['annotations'] = [ j['annotations'] = [
a.json(keys=['value', 'id', 'layer'], entity_cache=entity_cache) for a in annotations a.json(keys=['value', 'id', 'layer'], entity_cache=entity_cache) for a in annotations