start testing

This commit is contained in:
Ross
2022-05-21 11:20:21 +01:00
parent 0ca980ccb6
commit 160bb13b64
18 changed files with 203 additions and 61 deletions
+7 -2
View File
@@ -1,4 +1,5 @@
import os
import re
import dicognito
from rad.settings import REMOTE_URL
from django.db import models
@@ -597,7 +598,7 @@ class Exam(ExamBase):
time_limit = models.IntegerField(
help_text="Exam time limit (in seconds). Default is 2100 secondse (35 minutes)",
default=2100,
default=35 * 60,
)
author = models.ManyToManyField(
@@ -619,12 +620,15 @@ class Exam(ExamBase):
CidUserGroup,
blank=True,
help_text="These groups define which candidates are able to be added to the exams/collection.",
related_name="rapid_cid_user_groups"
)
user_user_groups = models.ManyToManyField(
UserUserGroup,
blank=True,
help_text="These groups define which candidates are able to be added to the exams/collection.",
related_name="rapid_user_user_groups"
)
def get_normal_abnormal_breakdown(self):
@@ -740,7 +744,8 @@ class CidUserAnswer(models.Model):
settings.AUTH_USER_MODEL,
on_delete=models.CASCADE,
blank=True,
null=True, # , related_name="user_rapid_user_answers"
null=True,
related_name="user_rapid_user_answers",
)
# Each user answer is associated with a particular exam