diff --git a/longs/models.py b/longs/models.py
index bb721490..ecb52d37 100644
--- a/longs/models.py
+++ b/longs/models.py
@@ -253,6 +253,19 @@ class LongSeries(models.Model):
"""Returns a comma seperated text list of regions"""
return str(self.examination)
+ def get_examination_full(self):
+ examination = ""
+ plane = ""
+ contrast = ""
+
+ if self.examination:
+ examination = self.examination
+ if self.plane:
+ plane = " {}".format(self.plane)
+ if self.contrast:
+ contrast = " {}".format(self.contrast)
+ return "{}{}{}".format(examination, plane, contrast)
+
def get_absolute_url(self):
return reverse("longs:long_series_detail", kwargs={"pk": self.pk})
@@ -279,7 +292,7 @@ class LongSeries(models.Model):
return format_html('', thumbnail), len(images)
def get_block(self):
- examination = self.get_examination()
+ examination = self.get_examination_full()
thumb, image_number = self.get_thumbnail()
return format_html(
"