Commit 932e15d8 authored by Ilya Simonov's avatar Ilya Simonov

fix post_save_video signal

parent be8b3545
......@@ -7,7 +7,7 @@ from . import models, tasks
@receiver(post_save, sender=models.Video)
def post_save_video(sender, instance, created, **kwargs):
if instance.status == models.PROGRESS:
if instance.status == models.PROGRESS and instance.local_file:
tasks.send_video_to_s3.apply_async((instance.id,))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment