Refactor HTML formatting to use mark_safe for safe rendering in various tables and models

This commit is contained in:
Ross
2026-01-28 14:28:36 +00:00
parent a61c8529ae
commit a512c2ba09
9 changed files with 54 additions and 45 deletions
+3 -3
View File
@@ -316,9 +316,9 @@ class Rapid(QuestionBase):
if not unmarked_answers:
return "No answers to mark"
return format_html(
"<span class='warn'>{} answer unmarked:</span> {}".format(
len(unmarked_answers), ", ".join(unmarked_answers)
)
"<span class='warn'>{} answer unmarked:</span> {}",
len(unmarked_answers),
", ".join(unmarked_answers),
)
def get_unmarked_user_answers(self, exam_pk: int | None = None, marker=None):