only return layers defined in config

This commit is contained in:
j 2015-10-04 14:11:39 +01:00
parent be1589569e
commit 6f4c010be0

View file

@ -26,6 +26,7 @@ def get_layers(item, interval=None, user=None):
private.append(name)
qs = Annotation.objects.filter(item=item).exclude(value='')
qs = qs.filter(layer__in=layers)
qs = qs.order_by('start', 'end', 'sortvalue')
if interval: