def _after_save(self, original_data, instance): mark_if_complete(instance.task_id, instance.project_id) task = task_repo.get_task(instance.task_id) gold_answers = get_gold_answers(task) update_gold_stats(instance.user_id, instance.task_id, original_data, gold_answers) update_quiz(instance.project_id, original_data['info'], gold_answers)
def _after_save(self, original_data, instance): mark_if_complete(instance.task_id, instance.project_id) update_gold_stats(instance.user_id, instance.task_id, original_data) update_quiz(instance.task_id, instance.project_id, original_data['info'])
def _after_save(self, instance): after_save(instance.project_id, instance.task_id, instance.user_id) mark_if_complete(instance.task_id, instance.project_id)