From 1a523e8bcb079e9bbca2a5fc43197eb8980182b5 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 20 Aug 2021 11:15:57 +0100 Subject: [PATCH] . --- rapids/models.py | 1 - rapids/templates/rapids/mark.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rapids/models.py b/rapids/models.py index cf30623c..50d42679 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -314,7 +314,6 @@ class Rapid(models.Model): #return self.get_images() def get_image_annotations(self): - annotations = [i.image_annotations for i in self.images.all() if not i.feedback_image] return json.dumps([i.image_annotations for i in self.images.all() if not i.feedback_image]) def get_laterality_string(self): diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html index 423d2fee..e1d3d011 100644 --- a/rapids/templates/rapids/mark.html +++ b/rapids/templates/rapids/mark.html @@ -14,7 +14,7 @@ Answers marked as normal will be automatically marked.
Region: {{ question.get_regions }}, Abnormalities: {{ question.get_abnormalities }} {% endif %}
+ data-annotations='{{question.get_image_annotations}}'>
{% csrf_token %}