From 6f4c010be08668b0b401cb9a028dd7b18d5ef3c5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 4 Oct 2015 14:11:39 +0100 Subject: [PATCH] only return layers defined in config --- pandora/clip/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/clip/models.py b/pandora/clip/models.py index bd6dab61..bdd9393b 100644 --- a/pandora/clip/models.py +++ b/pandora/clip/models.py @@ -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: