.
This commit is contained in:
+3
-1
@@ -27,6 +27,8 @@ from generic.models import Site, Condition, Sign, ExamBase, QuestionNote
|
|||||||
|
|
||||||
import reversion
|
import reversion
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
image_storage = FileSystemStorage(
|
image_storage = FileSystemStorage(
|
||||||
# Physical file location ROOT
|
# Physical file location ROOT
|
||||||
location=u"{0}".format(settings.MEDIA_ROOT),
|
location=u"{0}".format(settings.MEDIA_ROOT),
|
||||||
@@ -309,7 +311,7 @@ class Rapid(models.Model):
|
|||||||
#return self.get_images()
|
#return self.get_images()
|
||||||
|
|
||||||
def get_image_annotations(self):
|
def get_image_annotations(self):
|
||||||
return ",".join([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):
|
def get_laterality_string(self):
|
||||||
if self.laterality == self.NONE:
|
if self.laterality == self.NONE:
|
||||||
|
|||||||
Reference in New Issue
Block a user