Commit 00bd1f7d authored by Ilya Simonov's avatar Ilya Simonov

fix post save video

parent a09e9dd8
......@@ -7,7 +7,7 @@ from . import models, tasks, utils
@receiver(post_save, sender=models.Video)
def post_save_video(sender, instance, created, **kwargs):
if instance.status == models.PROGRESS and instance.local_file:
if instance.status == models.PROGRESS and instance.local_file and instance.slug:
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