Commit be8b3545 authored by Ilya Simonov's avatar Ilya Simonov

fix post_save_video signal

parent d28dd436
......@@ -7,7 +7,8 @@ from . import models, tasks
@receiver(post_save, sender=models.Video)
def post_save_video(sender, instance, created, **kwargs):
tasks.send_video_to_s3.apply_async((instance.id,))
if instance.status == models.PROGRESS:
tasks.send_video_to_s3.apply_async((instance.id,))
@receiver(post_save, sender=models.Playlist)
......
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