diff options
-rw-r--r-- | exam/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exam/views.py b/exam/views.py index 7157c45..a998606 100644 --- a/exam/views.py +++ b/exam/views.py @@ -359,7 +359,8 @@ def get_user_data(username): paper['start_time'] = str(q_paper.start_time) answers = {} for answer in q_paper.answers.all(): - qs = answer.question.summary + question = answer.question + qs = '%d. %s'%(question.id, question.summary) code = '#'*80 + '\n' + str(answer.answer) + '\n' if qs in answers: answers[qs] += code |