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,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
|
||||
|
|
Loading…
Reference in a new issue