fix file create
This commit is contained in:
parent
094fb06b92
commit
5c951e2559
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ class File(models.Model):
|
||||||
|
|
||||||
if self.is_subtitle:
|
if self.is_subtitle:
|
||||||
self.available = self.data and True or False
|
self.available = self.data and True or False
|
||||||
else:
|
elif self.id:
|
||||||
self.available = not self.uploading and \
|
self.available = not self.uploading and \
|
||||||
self.streams.filter(source=None, available=True).count()
|
self.streams.filter(source=None, available=True).count()
|
||||||
super(File, self).save(*args, **kwargs)
|
super(File, self).save(*args, **kwargs)
|
||||||
|
|
Loading…
Reference in a new issue