diff --git a/rapids/models.py b/rapids/models.py index 98af3ff2..cc880c5a 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -315,7 +315,9 @@ class Rapid(models.Model): def get_image_annotations(self): annotations = [i.image_annotations for i in self.images.all() if not i.feedback_image] - if len(set(annotations).remove("")) < 1: + a = set(annotations) + a.remove("") + if len(a) < 1: annotations = "" return json.dumps([i.image_annotations for i in self.images.all() if not i.feedback_image])