This commit is contained in:
Ross
2021-12-11 22:21:12 +00:00
parent 98ff9f2d39
commit 3d9c019bdc
9 changed files with 221 additions and 110 deletions
+3 -1
View File
@@ -15,7 +15,7 @@ from sortedm2m.fields import SortedManyToManyField
import string
from generic.models import Examination, ExamBase, QuestionNote
from generic.models import CidUser, Examination, ExamBase, QuestionNote
from collections import defaultdict
from helpers.images import image_as_base64
@@ -354,6 +354,8 @@ class Exam(ExamBase):
related_name="anatomy_exam_author",
)
valid_users = models.ManyToManyField(CidUser, blank=True, related_name="anatomy_exams")
def get_exam_json(self, based=True):
questions = self.exam_questions.all()