diff options
author | Prabhu Ramachandran | 2016-02-16 18:09:49 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2016-02-16 18:09:49 +0530 |
commit | 7e10b82ed3bceb0a2327309f634f8e4d4f8ca27b (patch) | |
tree | 65ed4ec5202176e977ef9028cc33d1726c92be79 /yaksh/models.py | |
parent | 53949a87278136a9faa705bcef0bb0a474551b31 (diff) | |
parent | 712f0cc181efc2ae3d52f5ee3d180bc099f4b793 (diff) | |
download | online_test-7e10b82ed3bceb0a2327309f634f8e4d4f8ca27b.tar.gz online_test-7e10b82ed3bceb0a2327309f634f8e4d4f8ca27b.tar.bz2 online_test-7e10b82ed3bceb0a2327309f634f8e4d4f8ca27b.zip |
Merge pull request #73 from prathamesh920/marks_update_issue
Marks update issue
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 6 |
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): """ |