From 6dd9522cc52caf398c0bf4bdb0436bc5c389a73a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 13 May 2015 21:59:17 +0200 Subject: [PATCH] never include empty layers --- pandora/item/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 025a6e4a9..f6a0c0ce7 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -553,8 +553,7 @@ class Item(models.Model): ll = layers.setdefault(name, []) qs = Annotation.objects.filter(layer=name, item=self).order_by( 'start', 'end', 'sortvalue') - if name == 'subtitles': - qs = qs.exclude(value='') + qs = qs.exclude(value='') if l.get('private'): if user and user.is_anonymous(): user = None