part bug
This commit is contained in:
parent
34f778f331
commit
1c33fea5bb
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ class File(models.Model):
|
|||
qs = self.item.files.filter(Q(is_video=True)|Q(is_audio=True),
|
||||
selected=True, path__startswith=name)
|
||||
if qs.count()>0:
|
||||
return qs[0].part
|
||||
return qs[0].get_part()
|
||||
if self.selected:
|
||||
files = list(self.item.files.filter(type=self.type, language=self.language,
|
||||
selected=self.selected).order_by('sort_path'))
|
||||
|
|
Loading…
Reference in a new issue