only return layers defined in config
This commit is contained in:
parent
be1589569e
commit
6f4c010be0
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ def get_layers(item, interval=None, user=None):
|
||||||
private.append(name)
|
private.append(name)
|
||||||
|
|
||||||
qs = Annotation.objects.filter(item=item).exclude(value='')
|
qs = Annotation.objects.filter(item=item).exclude(value='')
|
||||||
|
qs = qs.filter(layer__in=layers)
|
||||||
qs = qs.order_by('start', 'end', 'sortvalue')
|
qs = qs.order_by('start', 'end', 'sortvalue')
|
||||||
|
|
||||||
if interval:
|
if interval:
|
||||||
|
|
Loading…
Reference in a new issue