forked from 0x2620/pandora
never include empty layers
This commit is contained in:
parent
562a506d68
commit
6dd9522cc5
1 changed files with 1 additions and 2 deletions
|
@ -553,7 +553,6 @@ class Item(models.Model):
|
||||||
ll = layers.setdefault(name, [])
|
ll = layers.setdefault(name, [])
|
||||||
qs = Annotation.objects.filter(layer=name, item=self).order_by(
|
qs = Annotation.objects.filter(layer=name, item=self).order_by(
|
||||||
'start', 'end', 'sortvalue')
|
'start', 'end', 'sortvalue')
|
||||||
if name == 'subtitles':
|
|
||||||
qs = qs.exclude(value='')
|
qs = qs.exclude(value='')
|
||||||
if l.get('private'):
|
if l.get('private'):
|
||||||
if user and user.is_anonymous():
|
if user and user.is_anonymous():
|
||||||
|
|
Loading…
Reference in a new issue