forked from 0x2620/pandora
no empty subtitles
This commit is contained in:
parent
d953debf09
commit
34eedfd6e5
1 changed files with 2 additions and 0 deletions
|
@ -388,6 +388,8 @@ class Item(models.Model):
|
|||
for l in Layer.objects.all():
|
||||
ll = layers.setdefault(l.name, [])
|
||||
qs = Annotation.objects.filter(layer=l, item=self).select_related()
|
||||
if l.name == 'subtitles':
|
||||
qs = qs.exclude(value='')
|
||||
if l.private:
|
||||
if user and user.is_anonymous():
|
||||
user = None
|
||||
|
|
Loading…
Reference in a new issue