def get_entrance_exam_instructor_task_history(course_id, usage_key=None, student=None):
 instructor_tasks = InstructorTask.objects.filter(course_id=course_id)
 if ((usage_key is not None) or (student is not None)):
  (_, task_key) = encode_entrance_exam_and_student_input(usage_key, student)
  instructor_tasks = instructor_tasks.filter(task_key=task_key)
 return instructor_tasks.order_by('-id')

def get_entrance_exam_instructor_task_history ( course_id , usage_key = None , student = None ) : instructor_tasks = InstructorTask . objects . filter ( course_id = course_id ) if ( ( usage_key is not None ) or ( student is not None ) ) : ( _ , task_key ) = encode_entrance_exam_and_student_input ( usage_key , student ) instructor_tasks = instructor_tasks . filter ( task_key = task_key ) return instructor_tasks . order_by ( '-id' )
returns a query of instructortask objects of historical tasks for a given course .