.
This commit is contained in:
+2
-2
@@ -172,7 +172,7 @@ class Long(models.Model):
|
||||
)
|
||||
|
||||
def get_image_url_array(self):
|
||||
return ["https://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 get_unmarked_answer_count(self):
|
||||
answers = self.cid_user_answers.all()
|
||||
@@ -425,7 +425,7 @@ class LongSeries(models.Model):
|
||||
for i in self.images.all()
|
||||
]
|
||||
|
||||
return images
|
||||
return json.dumps(images)
|
||||
|
||||
def get_thumbnail(self):
|
||||
images = self.images.all()
|
||||
|
||||
Reference in New Issue
Block a user