diff --git a/atlas/models.py b/atlas/models.py index 19338d70..14f24e39 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -811,6 +811,7 @@ class CaseCollection(ExamOrCollectionGenericBase): ) exam_user_status = GenericRelation(ExamUserStatus) + cid_user_exam = GenericRelation(CidUserExam) feedback_once_collection_complete = models.BooleanField(default=True, help_text="If true feedback is only given once the collection is complete. If false feedback is given after each case.") diff --git a/generic/models.py b/generic/models.py index 0baf1e26..211d4d0f 100644 --- a/generic/models.py +++ b/generic/models.py @@ -1384,6 +1384,11 @@ def get_next_cid(): class CidUserExam(models.Model): + """This holds the current status of the exam for a candidate + + Contrast with ExamUserStatus which holds the status changes for a candidate + (and should be merged into here) + """ content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE) object_id = models.PositiveIntegerField() exam = GenericForeignKey("content_type", "object_id")