From fee123741dc173c16aa8690a9503c21d2cccee50 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 10 Nov 2025 10:56:07 +0000 Subject: [PATCH] Add get_image_url method to AnatomyQuestion and update DICOM image URL in exam review template --- anatomy/models.py | 3 +++ .../anatomy/partials/exam_review_question_fragment.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/anatomy/models.py b/anatomy/models.py index 8c2d9071..37d5d36c 100644 --- a/anatomy/models.py +++ b/anatomy/models.py @@ -180,6 +180,9 @@ class AnatomyQuestion(QuestionBase): exams = ", ".join(e) return exams + def get_image_url(self): + return "{}/{}".format(settings.REMOTE_URL, self.image.url) + def get_unmarked_user_answer_string(self, exam_pk=None): unmarked_answers = self.get_unmarked_user_answers(exam_pk) diff --git a/anatomy/templates/anatomy/partials/exam_review_question_fragment.html b/anatomy/templates/anatomy/partials/exam_review_question_fragment.html index 834e1daa..e5309f47 100644 --- a/anatomy/templates/anatomy/partials/exam_review_question_fragment.html +++ b/anatomy/templates/anatomy/partials/exam_review_question_fragment.html @@ -1,7 +1,7 @@

{{ question.question_type }}

-