From 4aa4db5d01f6ca47c0e3065d8a32480f03406456 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 8 Aug 2023 08:55:55 +0100 Subject: [PATCH] don't display contrast if none --- atlas/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlas/models.py b/atlas/models.py index 688e4983..1074c39a 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -528,7 +528,7 @@ class Series(SeriesBase): # instances.append(image.get_image_dicom_json(image_index)) description = f"{self.examination} ({self.plane})" - if self.contrast: + if self.contrast and self.contrast is not None: description = f"{description} / {self.contrast}" series_json["SeriesDescription"] = description series_json["instances"] = instances