better streams query
This commit is contained in:
parent
a957e3b9ad
commit
2406e0394e
1 changed files with 2 additions and 2 deletions
|
@ -839,8 +839,8 @@ class Item(models.Model):
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
def streams(self):
|
def streams(self):
|
||||||
return [video.streams.filter(source=None, available=True)[0]
|
return archive.models.Stream.objects.filter(source=None, available=True,
|
||||||
for video in self.files.filter(is_video=True, active=True).order_by('part')]
|
file__item=self, file__is_video=True, file__active=True).order_by('file__part')
|
||||||
|
|
||||||
def update_timeline(self, force=False):
|
def update_timeline(self, force=False):
|
||||||
config = site_config()
|
config = site_config()
|
||||||
|
|
Loading…
Reference in a new issue