git displaysets working in viva view
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user