This commit is contained in:
Ross
2021-09-11 18:10:36 +01:00
parent 9096fc8eac
commit 40fa407ced
4 changed files with 50 additions and 5 deletions
+5 -5
View File
@@ -727,12 +727,12 @@ class CidUserAnswer(models.Model):
max_length=3, choices=ScoreOptions.choices, default=ScoreOptions.UNMARKED, blank=True, help_text="The final score for the candidate"
)
primary_mark = models.ForeignKey(
"AnswerMarks", related_name="primary_mark", on_delete=models.SET_NULL, null=True, blank=True
)
secondary_mark = models.ForeignKey(
"AnswerMarks", related_name="secondary_mark", on_delete=models.SET_NULL, null=True, blank=True
mark = models.ManyToManyField(
"AnswerMarks", related_name="user_answer", blank=True
)
#secondary_mark = models.ForeignKey(
# "AnswerMarks", related_name="user_answer", on_delete=models.SET_NULL, null=True, blank=True
#)
created = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)