From 0344b149a60dadf49daf894fa6e0f17ec691af82 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 29 Nov 2021 19:06:41 +0000 Subject: [PATCH] . --- atlas/models.py | 3 +++ atlas/templates/atlas/series_viewer.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/atlas/models.py b/atlas/models.py index aef6865d..88513a22 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -214,6 +214,9 @@ class SeriesFindings(models.Model): findings = models.ManyToManyField(Finding, blank=True) annotation_json = models.TextField(null=True, blank=True) + def __str__(self) -> str: + return f"{self.series.id}/{self.description}" + @reversion.register class Series(models.Model): modality = models.ForeignKey( diff --git a/atlas/templates/atlas/series_viewer.html b/atlas/templates/atlas/series_viewer.html index 1a6c4578..fcdaa0e1 100755 --- a/atlas/templates/atlas/series_viewer.html +++ b/atlas/templates/atlas/series_viewer.html @@ -43,7 +43,7 @@ This series is not associated with any cases. Findings {% for finding in series.findings.all %} - {{finding.finding}}, {{finding.description}}
+ {{finding.findings}}, {{finding.description}}
{{finding.annotation_json}}
{% comment %} {{image.get_dicom_info|safe}}
{% endcomment %}