From 4512b799a66212314e371b0a94da1e7e4670db9b Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 23 Mar 2026 09:35:28 +0000 Subject: [PATCH] Add get_full_url method to SeriesImageBase and update DICOM template to use it --- atlas/templates/atlas/series_image_dicom.html | 5 +++-- generic/models.py | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/atlas/templates/atlas/series_image_dicom.html b/atlas/templates/atlas/series_image_dicom.html index bbed0993..fb795967 100755 --- a/atlas/templates/atlas/series_image_dicom.html +++ b/atlas/templates/atlas/series_image_dicom.html @@ -1,11 +1,12 @@ {% extends "atlas/base.html" %} {% block content %} -
+
{{image.get_dicom_info|safe}}
- Download DICOM Image + Download DICOM Image + {{image.get_full_url}}
diff --git a/generic/models.py b/generic/models.py index 280db3b1..acab5b0c 100644 --- a/generic/models.py +++ b/generic/models.py @@ -326,6 +326,9 @@ class SeriesImageBase(models.Model): except pydicom.errors.InvalidDicomError: return {} + def get_full_url(self): + return f"{REMOTE_URL}{self.image.url}" + def get_series(self): return self.series