This commit is contained in:
Ross
2021-04-22 12:43:27 +01:00
parent 1b738d0edb
commit b7d32e6589
9 changed files with 199 additions and 0 deletions
+6
View File
@@ -361,6 +361,12 @@ class Exam(ExamBase):
help_text="Exam time limit (in seconds). Default is 2100 secondse (35 minutes)", default=2100
)
author = models.ManyToManyField(settings.AUTH_USER_MODEL,
blank=True,
help_text='Author of exam',
related_name="rapid_exam_author")
def get_normal_abnormal_breakdown(self):
# Inefficient but more extendible
questions = self.exam_questions.all()