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
+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")