From 65727477a65bb12d0a98533411c4b619b9d0c6c0 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 5 Feb 2021 12:30:06 +0000 Subject: [PATCH] . --- longs/models.py | 8 ++++---- longs/templates/longs/long_series.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/longs/models.py b/longs/models.py index e84cd180..84d30fbf 100644 --- a/longs/models.py +++ b/longs/models.py @@ -131,10 +131,10 @@ class LongSeries(models.Model): long = models.ForeignKey("Long", help_text="The question this series should be associated with", related_name="series", on_delete=models.SET_NULL, null=True) description = models.TextField(blank=True, help_text="Description of stack, for admin organisation, will not be visible when taking") - def get_examinations(self): - """Returns a comma seperated text list of regions""" - examinations = ", ".join([i.examination for i in self.examination.all()]) - return examinations + #def get_examinations(self): + # """Returns a comma seperated text list of regions""" + # examinations = ", ".join([i.examination for i in self.examination.all()]) + # return examinations def get_absolute_url(self): return reverse('longs:long_series_detail', kwargs={'pk': self.pk}) diff --git a/longs/templates/longs/long_series.html b/longs/templates/longs/long_series.html index f54bc3c3..d8255139 100755 --- a/longs/templates/longs/long_series.html +++ b/longs/templates/longs/long_series.html @@ -1,4 +1,4 @@ -
{{ series.modality}}, {{ series.get_examinations }}
+
{{ series.modality}}, {{ series.examination }}
\ No newline at end of file