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 MarkLongQuestionSingleForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = UserAnswer
|
model = UserAnswer
|
||||||
fields = ["score", "candidate_feedback"]
|
fields = ["score", "candidate_feedback", "marker_feedback"]
|
||||||
|
|
||||||
widgets = {
|
widgets = {
|
||||||
"candidate_feedback": Textarea(attrs={"rows": 3}),
|
"candidate_feedback": Textarea(attrs={"rows": 3}),
|
||||||
|
"marker_feedback": Textarea(attrs={"rows": 3}),
|
||||||
}
|
}
|
||||||
|
|
||||||
class MarkLongQuestionDoubleForm(ModelForm):
|
class MarkLongQuestionDoubleForm(ModelForm):
|
||||||
|
|||||||
@@ -644,6 +644,10 @@ class UserAnswer(UserAnswerBase):
|
|||||||
null=True, blank=True, help_text="Feedback for the candidate"
|
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(
|
# mark = models.ManyToManyField(
|
||||||
# "AnswerMarks", related_name="user_answer", blank=True
|
# "AnswerMarks", related_name="user_answer", blank=True
|
||||||
# )
|
# )
|
||||||
|
|||||||
+2
-1
@@ -262,10 +262,11 @@ class QuestionFindingForm(ModelForm):
|
|||||||
class MarkQuestionSingleForm(ModelForm):
|
class MarkQuestionSingleForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = UserAnswer
|
model = UserAnswer
|
||||||
fields = ["score", "candidate_feedback"]
|
fields = ["score", "candidate_feedback", "marker_feedback"]
|
||||||
|
|
||||||
widgets = {
|
widgets = {
|
||||||
"candidate_feedback": Textarea(attrs={"rows": 3}),
|
"candidate_feedback": Textarea(attrs={"rows": 3}),
|
||||||
|
"marker_feedback": Textarea(attrs={"rows": 3}),
|
||||||
}
|
}
|
||||||
|
|
||||||
class MarkQuestionDoubleForm(ModelForm):
|
class MarkQuestionDoubleForm(ModelForm):
|
||||||
|
|||||||
@@ -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."
|
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):
|
class CallStateOptions(models.TextChoices):
|
||||||
CORRECT = "C", _("Correct Call")
|
CORRECT = "C", _("Correct Call")
|
||||||
OVERCALL = "O", _("Overcall")
|
OVERCALL = "O", _("Overcall")
|
||||||
|
|||||||
Reference in New Issue
Block a user