git displaysets working in viva view

This commit is contained in:
Ross
2025-07-21 10:51:34 +01:00
parent 5187885c3b
commit f5258d7e6f
7 changed files with 117 additions and 61 deletions
+5
View File
@@ -1152,6 +1152,11 @@ class CaseDisplaySet(models.Model, AuthorMixin):
structures = models.ManyToManyField(Structure, blank=True)
conditions = models.ManyToManyField(Condition, blank=True)
def viewerstate_string(self):
return json.dumps(self.viewerstate) if self.viewerstate else "{}"
def annotations_string(self):
return json.dumps(self.annotations) if self.annotations else "{}"
class CaseDetail(models.Model):