.
This commit is contained in:
+3
-2
@@ -1,3 +1,4 @@
|
||||
from rad.settings import REMOTE_URL
|
||||
from django.db import models
|
||||
from django.http.response import JsonResponse
|
||||
from django.shortcuts import get_object_or_404
|
||||
@@ -347,10 +348,10 @@ class Rapid(models.Model):
|
||||
return images
|
||||
|
||||
def get_image_urls(self):
|
||||
return ",".join(["https://www.penracourses.org.uk{}".format(i.url) for i in self.get_images()])
|
||||
return ",".join([f"{REMOTE_URL}{i.url}" for i in self.get_images()])
|
||||
|
||||
def get_image_url_array(self):
|
||||
return json.dumps(["https://www.penracourses.org.uk{}".format(i.url) for i in self.get_images()])
|
||||
return json.dumps([f"{REMOTE_URL}{i.url}" for i in self.get_images()])
|
||||
#def GetNonFeedbackQuestionImages(self):
|
||||
#return self.get_images()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user