Add get_image_url method to AnatomyQuestion and update DICOM image URL in exam review template

This commit is contained in:
Ross
2025-11-10 10:56:07 +00:00
parent 367cebb787
commit fee123741d
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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)