This commit is contained in:
Ross
2021-02-25 18:02:02 +00:00
parent 67163e85ee
commit f5b61f4488
9 changed files with 68 additions and 7 deletions
+6 -1
View File
@@ -58,6 +58,11 @@ def findMiddle(input_list):
class Long(models.Model):
# author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
# image = models.ImageField()
description = models.TextField(
blank=True,
help_text="Description of the case, for admin organisation, will not be visible when taking",
)
history = models.TextField(null=True, blank=True)
feedback = models.TextField(null=True, blank=True)
@@ -121,7 +126,7 @@ class Long(models.Model):
def __str__(self):
examinations = [series.get_examination() for series in self.series.all()]
return "{} : {}".format(self.history, ", ".join(examinations))
return "{} : {}".format(self.description, ", ".join(examinations))
def GetExams(self):
e = self.exams.all().values_list("name", flat=True)