pre refactor exam_user_status
This commit is contained in:
@@ -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.")
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user