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 %}