.
This commit is contained in:
+4
-4
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user