start testing
This commit is contained in:
+7
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user