.
This commit is contained in:
+3
-3
@@ -349,10 +349,10 @@ class Rapid(models.Model):
|
|||||||
|
|
||||||
# Loop through rapidimage associations
|
# Loop through rapidimage associations
|
||||||
images = []
|
images = []
|
||||||
#annotations = []
|
annotations = []
|
||||||
feedback_images = []
|
feedback_images = []
|
||||||
for i in self.images.all():
|
for i in self.images.all():
|
||||||
#annotations.append(i.image_annotations)
|
annotations.append(i.image_annotations)
|
||||||
if i.feedback_image == True:
|
if i.feedback_image == True:
|
||||||
if based:
|
if based:
|
||||||
feedback_images.append(image_as_base64(i.image))
|
feedback_images.append(image_as_base64(i.image))
|
||||||
@@ -370,7 +370,7 @@ class Rapid(models.Model):
|
|||||||
json = {
|
json = {
|
||||||
"images": images,
|
"images": images,
|
||||||
#"feedback_image": [],
|
#"feedback_image": [],
|
||||||
"annotations": self.get_image_annotations(),
|
"annotations": annotations,
|
||||||
"type": "rapid",
|
"type": "rapid",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user