This commit is contained in:
Ross
2021-02-05 12:30:06 +00:00
parent 45f0ecfed5
commit 65727477a6
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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})