From 0e3353d489fd54a2c84c712ae04e44a9f8d8cd90 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 19 Dec 2018 13:46:40 +0530 Subject: 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 --- yaksh/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'yaksh/models.py') 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""" -- cgit