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