.
This commit is contained in:
+1
-1
@@ -309,7 +309,7 @@ class Rapid(models.Model):
|
|||||||
return ",".join(["https://www.penracourses.org.uk{}".format(i.url) for i in self.get_images()])
|
return ",".join(["https://www.penracourses.org.uk{}".format(i.url) for i in self.get_images()])
|
||||||
|
|
||||||
def get_image_url_array(self):
|
def get_image_url_array(self):
|
||||||
return json.dumps(["testhttps://www.penracourses.org.uk{}".format(i.url) for i in self.get_images()])
|
return json.dumps(["https://www.penracourses.org.uk{}".format(i.url) for i in self.get_images()])
|
||||||
#def GetNonFeedbackQuestionImages(self):
|
#def GetNonFeedbackQuestionImages(self):
|
||||||
#return self.get_images()
|
#return self.get_images()
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
<summary>
|
<summary>
|
||||||
Image viewer
|
Image viewer
|
||||||
</summary>
|
</summary>
|
||||||
<div id="single-dicom-viewer" class="dicom-viewer" data-images="{{ question.get_image_urls }}" data-annotations='{{question.get_image_annotations}}'>
|
<div id="single-dicom-viewer" class="dicom-viewer" data-images="{{ question.get_image_url_array }}" data-annotations='{{question.get_image_annotations}}'>
|
||||||
</div>
|
</div>
|
||||||
<button id="save-annotations">Save Annotations</button>
|
<button id="save-annotations">Save Annotations</button>
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
Reference in New Issue
Block a user