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