#NEWLINE# def assignment_page( request , course_id , assignment_id ) : #NEWLINE# #INDENT# course = Course . objects . get ( id = course_id ) #NEWLINE# teacher = Teacher . objects . get ( user = request . user ) #NEWLINE# assignment = Assignment . objects . get ( assignment_id = assignment_id ) #NEWLINE# return render ( request , 'teacher/assignment/question_view.html' , { #NEWLINE# #INDENT# 'teacher' : teacher , #NEWLINE# 'course' : course , #NEWLINE# 'assignment' : assignment , #NEWLINE# 'ESSAY_QUESTION_TYPE' : settings . ESSAY_QUESTION_TYPE , #NEWLINE# 'MULTIPLECHOICE_QUESTION_TYPE' : settings . MULTIPLECHOICE_QUESTION_TYPE , #NEWLINE# 'TRUEFALSE_QUESTION_TYPE' : settings . TRUEFALSE_QUESTION_TYPE , #NEWLINE# 'RESPONSE_QUESTION_TYPE' : settings . RESPONSE_QUESTION_TYPE , #NEWLINE# 'user' : course_id . user , #NEWLINE# 'tab' : 'assignment' , #NEWLINE# 'local_css_urls' : settings . SB_ADMIN_2_CSS_LIBRARY_URLS , #NEWLINE# 'local_js_urls' : settings . SB_ADMIN_2_JS_LIBRARY_URLS , #NEWLINE# #UNINDENT# } )