Add get_image_url method to AnatomyQuestion and update DICOM image URL in exam review template
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="card mb-3">
|
||||
<div class="card-body">
|
||||
<p class="lead">{{ question.question_type }}</p>
|
||||
<div id="dicom-image" class="dicom-image" data-url="{{ remote_url }}{{ question.image.url}}"
|
||||
<div id="dicom-image" class="dicom-image" data-url="{{ question.get_image_url }}"
|
||||
data-annotations='{{question.image_annotations}}' data-edit_annotation=true>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user