#NEWLINE# def survey_thanks( request , survey_code , code ) : #NEWLINE# #INDENT# answer = get_object_or_404 ( SurveyAnswer . objects . select_related ( 'survey' ) , survey__is_active = True , survey__code = survey_code , code = code ) #NEWLINE# return render ( request , 'survey/thanks.html' , { #NEWLINE# #INDENT# 'survey' : answer . survey , #NEWLINE# 'answer' : answer , #NEWLINE# #UNINDENT# } )