def perform_create(self, serializer): super().perform_create(serializer) # create a task to download the episode watch_tv_episode_task.delay(serializer.instance.id)
def _watch_media_task(self, watch_media_id: int): watch_tv_episode_task.delay(watch_media_id)