summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorprathamesh2016-02-16 14:30:57 +0530
committerprathamesh2016-02-16 14:30:57 +0530
commit5fa372b47e1f70e3d7d3b2df02410f50a86664b2 (patch)
treeb8209e667e4b43c0752cd3eb3694c0cf0a6304ef /yaksh/models.py
parentc3031971929aa7b92705680c35f57cf422efd88d (diff)
downloadonline_test-5fa372b47e1f70e3d7d3b2df02410f50a86664b2.tar.gz
online_test-5fa372b47e1f70e3d7d3b2df02410f50a86664b2.tar.bz2
online_test-5fa372b47e1f70e3d7d3b2df02410f50a86664b2.zip
Marks are updated at each submit.
Shows status of the user test to the moderator
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index e7852d5..712c455 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -430,9 +430,9 @@ class AnswerPaper(models.Model):
else:
self.passed = False
- def update_status(self):
- """ Sets status to completed """
- self.status = 'completed'
+ def update_status(self, state):
+ """ Sets status as inprogress or completed """
+ self.status = state
def get_question_answers(self):
"""