tidy up some longs related stuff

This commit is contained in:
Ross
2024-07-08 13:14:11 +01:00
parent bcfcd8da82
commit 19a9a27747
11 changed files with 140 additions and 44 deletions
+9 -7
View File
@@ -328,12 +328,13 @@ class Long(QuestionBase):
return url
def get_unanswered_mark_and_text(self) -> tuple[int, tuple[str, str, str, str, str]]:
def get_unanswered_mark_and_text(self) -> tuple[int, str]:
"""
Long cases are receive a mark between 4 and 8
Therefore unmarked = 4
This has changed to a 3 if unanswered
Therefore unmarked = 3
"""
return (4, ("Not answered",) * 5)
return (3, ("Not answered",) * 5)
# def GetNonFeedbackQuestionImages(self):
# return self.get_images()
@@ -612,6 +613,7 @@ class UserAnswer(UserAnswerBase):
class ScoreOptions(models.TextChoices):
UNMARKED = "", _("Unmarked")
#UNANSWERED = "3", _("Unanswered")
FOUR = "4", _("4")
FOUR_HALF = "4.5", _("4.5")
FIVE = "5", _("5")
@@ -630,6 +632,10 @@ class UserAnswer(UserAnswerBase):
help_text="The final score for the candidate",
)
candidate_feedback = models.TextField(
null=True, blank=True, help_text="Feedback for the candidate"
)
# mark = models.ManyToManyField(
# "AnswerMarks", related_name="user_answer", blank=True
# )
@@ -752,10 +758,6 @@ class AnswerMarks(models.Model):
help_text="Reason for the given mark - not visible to candidates",
)
candidate_feedback = models.TextField(
null=True, blank=True, help_text="Feedback for the candidate"
)
marker = models.ForeignKey(
settings.AUTH_USER_MODEL, related_name="marker", on_delete=models.CASCADE
)