pre refactor exam_user_status

This commit is contained in:
Ross
2024-07-22 11:48:10 +01:00
parent 07d766cb30
commit ca4c8d31b9
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -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.")
+5
View File
@@ -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")