feat: add marker feedback field to UserAnswer model and update forms accordingly
This commit is contained in:
+2
-1
@@ -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):
|
||||
|
||||
@@ -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
|
||||
# )
|
||||
|
||||
Reference in New Issue
Block a user