summaryrefslogtreecommitdiff
path: root/testapp/exam/models.py
diff options
context:
space:
mode:
authorprathamesh2015-04-07 14:37:35 +0530
committerprathamesh2015-04-07 14:37:35 +0530
commit1e26be51bc269fc3884d75ace33bfd6c4627547f (patch)
treef6bbe837efd7a376fee0ee11befc84ee159eecc8 /testapp/exam/models.py
parent7eaeb90e0db758894c2cebf8e062d65c1faa2a6d (diff)
downloadonline_test-1e26be51bc269fc3884d75ace33bfd6c4627547f.tar.gz
online_test-1e26be51bc269fc3884d75ace33bfd6c4627547f.tar.bz2
online_test-1e26be51bc269fc3884d75ace33bfd6c4627547f.zip
Had missed models.py in the change variable commit.
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r--testapp/exam/models.py4
1 files changed, 2 insertions, 2 deletions
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)