diff --git a/rapids/models.py b/rapids/models.py index 49abd7a2..ed379bb8 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -349,10 +349,10 @@ class Rapid(models.Model): # Loop through rapidimage associations images = [] - #annotations = [] + annotations = [] feedback_images = [] for i in self.images.all(): - #annotations.append(i.image_annotations) + annotations.append(i.image_annotations) if i.feedback_image == True: if based: feedback_images.append(image_as_base64(i.image)) @@ -370,7 +370,7 @@ class Rapid(models.Model): json = { "images": images, #"feedback_image": [], - "annotations": self.get_image_annotations(), + "annotations": annotations, "type": "rapid", }