def submit_delete_entrance_exam_state_for_student(request, usage_key, student):
 modulestore().get_item(usage_key)
 milestones_helpers.remove_course_content_user_milestones(course_key=usage_key.course_key, content_key=usage_key, user=student, relationship='fulfills')
 task_type = 'delete_problem_state'
 task_class = delete_problem_state
 (task_input, task_key) = encode_entrance_exam_and_student_input(usage_key, student)
 return submit_task(request, task_type, task_class, usage_key.course_key, task_input, task_key)

def submit_delete_entrance_exam_state_for_student ( request , usage_key , student ) : modulestore ( ) . get_item ( usage_key ) milestones_helpers . remove_course_content_user_milestones ( course_key = usage_key . course_key , content_key = usage_key , user = student , relationship = 'fulfills' ) task_type = 'delete_problem_state' task_class = delete_problem_state ( task_input , task_key ) = encode_entrance_exam_and_student_input ( usage_key , student ) return submit_task ( request , task_type , task_class , usage_key . course_key , task_input , task_key )
requests reset of state for entrance exam as a background task .