summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorprathamesh2018-12-19 13:46:40 +0530
committerprathamesh2018-12-19 13:46:40 +0530
commit0e3353d489fd54a2c84c712ae04e44a9f8d8cd90 (patch)
treec481d2eff3512da0c9c72bb33203d4f9f3b3e636 /yaksh
parenta9e36d0ba393bc709c8bd61b133170e9506aa510 (diff)
downloadonline_test-0e3353d489fd54a2c84c712ae04e44a9f8d8cd90.tar.gz
online_test-0e3353d489fd54a2c84c712ae04e44a9f8d8cd90.tar.bz2
online_test-0e3353d489fd54a2c84c712ae04e44a9f8d8cd90.zip
Provide API version 1 for Yaksh
- Serializers for Question, Quiz, QuestionPaper, AnswerPaper - Can create questions, quizzes, question and answer papers - Can check mcq, mcc and code questions - Tests for the API
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 60b09c5..e3212fd 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1509,6 +1509,7 @@ class QuestionPaper(models.Model):
for question_set in self.random_questions.all():
marks += question_set.marks * question_set.num_questions
self.total_marks = marks
+ self.save()
def _get_questions_for_answerpaper(self):
""" Returns fixed and random questions for the answer paper"""