This commit is contained in:
Ross
2021-08-11 18:18:44 +01:00
parent 1618ace70b
commit 714adb0a81
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ class Long(models.Model):
def __str__(self):
examinations = [series.get_examination() for series in self.series.all()]
return "{} : {}".format(self.description, ", ".join(examinations))
return "{}/{} : {}".format(self.pk, self.description, ", ".join(examinations))
def get_exams(self):
e = self.exams.all().values_list("name", flat=True)
@@ -368,7 +368,7 @@ class LongSeries(models.Model):
#long_id = self.long.pk
else:
long_id = "None"
return "{} : {} [{}]".format(
return "{}/{} : {} [{}]".format(self.pk,
self.get_examination(), self.description, long_id
)