summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
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):
"""