Fixing crash when not debugging questionanires;

dj111py38
Griffin Caprio 2015-04-13 22:13:15 -05:00
parent 5b5b54e139
commit 3b752628ba
1 changed files with 1 additions and 0 deletions

View File

@ -629,6 +629,7 @@ def show_questionnaire(request, runinfo, errors={}):
else:
prev_url = 'javascript:history.back();'
current_answers = []
if debug_questionnaire:
current_answers = Answer.objects.filter(subject=runinfo.subject, runid=runinfo.runid).order_by('id')