#NEWLINE# def quiz_detail( request , slug ) : #NEWLINE# #INDENT# quiz = get_object_or_404 ( Quiz , slug__iexact = slug ) #NEWLINE# try : #NEWLINE# #INDENT# score = quiz . score_set . get ( student = request . user , quiz = quiz ) #NEWLINE# questions = quiz . question_set . all ( ) #NEWLINE# corrent_anwser = score . corrent_anwsers #NEWLINE# return render_to_response ( 'quiz/quiz_score.html' , { #NEWLINE# #INDENT# 'quiz' : quiz , #NEWLINE# 'score' : score , #NEWLINE# 'questions' : questions , #NEWLINE# 'corrent_anwser' : corrent_anwser , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# except Score . DoesNotExist : #NEWLINE# #INDENT# form_list = quiz_forms ( score ) #NEWLINE# return render_to_response ( 'quiz/quiz_detail.html' , { #NEWLINE# #INDENT# 'form_list' : form_list , #NEWLINE# 'quiz' : quiz , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )