From 1e26be51bc269fc3884d75ace33bfd6c4627547f Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 7 Apr 2015 14:37:35 +0530 Subject: Had missed models.py in the change variable commit. --- testapp/exam/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testapp/exam') diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 24ec10b..ebf1018 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -190,9 +190,9 @@ class QuestionPaper(models.Model): questions += question_set.get_random_questions() return questions - def make_answerpaper(self, user, ip, attempt_no): + def make_answerpaper(self, user, ip, attempt_num): """Creates an answer paper for the user to attempt the quiz""" - ans_paper = AnswerPaper(user=user, user_ip=ip, attempt_number=attempt_no) + ans_paper = AnswerPaper(user=user, user_ip=ip, attempt_number=attempt_num) ans_paper.start_time = datetime.datetime.now() ans_paper.end_time = ans_paper.start_time \ + datetime.timedelta(minutes=self.quiz.duration) -- cgit