diff --git a/shorts/models.py b/shorts/models.py index e539e6de..4153ffb9 100644 --- a/shorts/models.py +++ b/shorts/models.py @@ -232,7 +232,7 @@ class Question(QuestionBase): def get_question_json( self, based: bool = True, - feedback: bool = False, + feedback: bool = True, answers: bool = True, history: bool = True, annotations: bool = False, diff --git a/shorts/templates/shorts/exam_scores_user.html b/shorts/templates/shorts/exam_scores_user.html index eb5fd585..79c376f3 100644 --- a/shorts/templates/shorts/exam_scores_user.html +++ b/shorts/templates/shorts/exam_scores_user.html @@ -1,22 +1,21 @@ {% extends 'base.html' %} {% block content %} -
${data.history}`);
}
if (data.feedback) {
- $(".question-display-block .question-feedback").empty().append(`Feedback:${data.feedback}`);
+ console.log("Feedback", data.feedback)
+ $(".question-feedback").empty().append(`Feedback:${data.feedback}`);
} else {
- $(".question-display-block .question-feedback").empty();
+ $(".question-feedback").empty();
}
console.log(data)
if (data.answers && data.answers.length > 0) {