replace http with https
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<a href="{% url 'anatomy:anatomy_question_update' question.id %}" title="Edit the Question">Edit</a> <a href="{% url 'admin:anatomy_anatomyquestion_change' question.id %}" title="Edit the Question using the admin interface">Admin Edit</a>
|
<a href="{% url 'anatomy:anatomy_question_update' question.id %}" title="Edit the Question">Edit</a> <a href="{% url 'admin:anatomy_anatomyquestion_change' question.id %}" title="Edit the Question using the admin interface">Admin Edit</a>
|
||||||
<h3>{{ question.question_type }}</h3>
|
<h3>{{ question.question_type }}</h3>
|
||||||
|
|
||||||
<div id="single-dicom-viewer" class="marking-dicom" data-images="http://penracourses.org.uk{{ question.image.url}}" data-annotations='{{question.get_annotations}}'>
|
<div id="single-dicom-viewer" class="marking-dicom" data-images="https://penracourses.org.uk{{ question.image.url}}" data-annotations='{{question.get_annotations}}'>
|
||||||
</div>
|
</div>
|
||||||
<div class="marking">
|
<div class="marking">
|
||||||
<form method="POST" class="post-form">{% csrf_token %}
|
<form method="POST" class="post-form">{% csrf_token %}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<button id="save-annotations">Save Annotations</button>
|
<button id="save-annotations">Save Annotations</button>
|
||||||
<div id="dicom-image" class="dicom-image" data-url="http://penracourses.org.uk{{ question.image.url}}"
|
<div id="dicom-image" class="dicom-image" data-url="https://penracourses.org.uk{{ question.image.url}}"
|
||||||
data-annotations='{{question.image_annotations}}' data-edit_annotation=true></div>
|
data-annotations='{{question.image_annotations}}' data-edit_annotation=true></div>
|
||||||
<!-- testing -->
|
<!-- testing -->
|
||||||
<!--<div id="dicom-image" data-url="http://localhost:8000/static/abdoct.jpg"
|
<!--<div id="dicom-image" data-url="http://localhost:8000/static/abdoct.jpg"
|
||||||
|
|||||||
+2
-2
@@ -152,7 +152,7 @@ class Long(models.Model):
|
|||||||
|
|
||||||
def GetImageUrls(self):
|
def GetImageUrls(self):
|
||||||
return ",".join(
|
return ",".join(
|
||||||
["http://penracourses.org.uk{}".format(i.url) for i in self.GetImages()]
|
["https://penracourses.org.uk{}".format(i.url) for i in self.GetImages()]
|
||||||
)
|
)
|
||||||
|
|
||||||
def GetUnmarkedAnswerCount(self):
|
def GetUnmarkedAnswerCount(self):
|
||||||
@@ -308,7 +308,7 @@ class LongSeries(models.Model):
|
|||||||
|
|
||||||
def get_image_urls(self, feedback=False):
|
def get_image_urls(self, feedback=False):
|
||||||
images = [
|
images = [
|
||||||
"http://penracourses.org.uk{}".format(i.image.url)
|
"https://penracourses.org.uk{}".format(i.image.url)
|
||||||
for i in self.images.all()
|
for i in self.images.all()
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -279,7 +279,7 @@ class Rapid(models.Model):
|
|||||||
return images
|
return images
|
||||||
|
|
||||||
def GetImageUrls(self):
|
def GetImageUrls(self):
|
||||||
return ",".join(["http://penracourses.org.uk{}".format(i.url) for i in self.GetImages()])
|
return ",".join(["https://penracourses.org.uk{}".format(i.url) for i in self.GetImages()])
|
||||||
#def GetNonFeedbackQuestionImages(self):
|
#def GetNonFeedbackQuestionImages(self):
|
||||||
#return self.GetImages()
|
#return self.GetImages()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user