Esempio n. 1
0
 def _watch_media_task(self, watch_media_id: int):
     watch_movie_task.delay(watch_media_id)
Esempio n. 2
0
 def perform_update(self, serializer):
     super().perform_update(serializer)
     # create a task to download the movie
     watch_movie_task.delay(serializer.instance.id)