summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorankitjavalkar2017-03-02 10:34:37 +0530
committerankitjavalkar2017-03-06 17:35:17 +0530
commit0f2a42799d3140de132c203cc255516caa69d617 (patch)
tree0e1718e3f087e7981224205b28882693e85ef385 /yaksh/models.py
parent0f730a5adc35e06f22f89fbbaa2d810e57074561 (diff)
downloadonline_test-0f2a42799d3140de132c203cc255516caa69d617.tar.gz
online_test-0f2a42799d3140de132c203cc255516caa69d617.tar.bz2
online_test-0f2a42799d3140de132c203cc255516caa69d617.zip
Rename completed_question model method to add_completed_question
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 61c9059..b80482c 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -982,7 +982,7 @@ class AnswerPaper(models.Model):
"""Returns the number of questions left."""
return self.questions_unanswered.count()
- def completed_question(self, question_id):
+ def add_completed_question(self, question_id):
"""
Adds the completed question to the list of answered
questions and returns the next question.