From 277322059cc7b64940c1da4e4aba2ac2ac6d172c Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 4 Jul 2026 22:49:11 +0100 Subject: [PATCH] feat: add marker feedback field to UserAnswer model and update forms accordingly --- longs/forms.py | 3 ++- longs/models.py | 4 ++++ shorts/forms.py | 3 ++- shorts/models.py | 4 ++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/longs/forms.py b/longs/forms.py index e9f48e03..be613712 100755 --- a/longs/forms.py +++ b/longs/forms.py @@ -52,10 +52,11 @@ class LongAnswerForm(ModelForm): class MarkLongQuestionSingleForm(ModelForm): class Meta: model = UserAnswer - fields = ["score", "candidate_feedback"] + fields = ["score", "candidate_feedback", "marker_feedback"] widgets = { "candidate_feedback": Textarea(attrs={"rows": 3}), + "marker_feedback": Textarea(attrs={"rows": 3}), } class MarkLongQuestionDoubleForm(ModelForm): diff --git a/longs/models.py b/longs/models.py index 81dea8dd..a6521aef 100644 --- a/longs/models.py +++ b/longs/models.py @@ -644,6 +644,10 @@ class UserAnswer(UserAnswerBase): null=True, blank=True, help_text="Feedback for the candidate" ) + marker_feedback = models.TextField( + null=True, blank=True, help_text="Feedback for the marker, this is optional and will NOT be shown to the candidate." + ) + # mark = models.ManyToManyField( # "AnswerMarks", related_name="user_answer", blank=True # ) diff --git a/shorts/forms.py b/shorts/forms.py index a3b52c94..43cae514 100644 --- a/shorts/forms.py +++ b/shorts/forms.py @@ -262,10 +262,11 @@ class QuestionFindingForm(ModelForm): class MarkQuestionSingleForm(ModelForm): class Meta: model = UserAnswer - fields = ["score", "candidate_feedback"] + fields = ["score", "candidate_feedback", "marker_feedback"] widgets = { "candidate_feedback": Textarea(attrs={"rows": 3}), + "marker_feedback": Textarea(attrs={"rows": 3}), } class MarkQuestionDoubleForm(ModelForm): diff --git a/shorts/models.py b/shorts/models.py index 0137e1cb..cc6556fb 100644 --- a/shorts/models.py +++ b/shorts/models.py @@ -624,6 +624,10 @@ class UserAnswer(UserAnswerBase): null=True, blank=True, help_text="Feedback for the candidate, this is optional but WILL be shown to the candidate." ) + marker_feedback = models.TextField( + null=True, blank=True, help_text="Feedback for the marker, this is optional and will NOT be shown to the candidate." + ) + class CallStateOptions(models.TextChoices): CORRECT = "C", _("Correct Call") OVERCALL = "O", _("Overcall")