diff options
author | prathamesh | 2018-12-19 13:46:40 +0530 |
---|---|---|
committer | prathamesh | 2018-12-19 13:46:40 +0530 |
commit | 0e3353d489fd54a2c84c712ae04e44a9f8d8cd90 (patch) | |
tree | c481d2eff3512da0c9c72bb33203d4f9f3b3e636 /yaksh | |
parent | a9e36d0ba393bc709c8bd61b133170e9506aa510 (diff) | |
download | online_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.py | 1 |
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""" |