This commit is contained in:
Ross
2021-09-29 19:33:52 +01:00
parent f5a62a7419
commit 5be2b148ca
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -132,8 +132,8 @@ class AnatomyQuestion(models.Model):
def __str__(self):
# Get first answer
return "{}: {} [{}, {}]".format(
self.question_type, self.get_primary_answer(), self.modality, self.structure
return "{}/{}: {} [{}, {}]".format(
self.pk, self.question_type, self.get_primary_answer(), self.modality, self.structure
)
# Get associated exams
e = self.exams.all().values_list("name", flat=True)
+2 -2
View File
@@ -211,12 +211,12 @@ class Rapid(models.Model):
n = "Normal"
if not self.normal:
#n = self.answers.first()
n = "{} / {}".format(self.abnormality.first(), self.region.first())
n = "{}/{} : {}".format(self.pk, self.abnormality.first(), self.region.first())
exams = self.get_examinations()
lat = ""
if self.laterality != "NONE":
lat = self.laterality
return "{} / {} {}".format(exams, lat, n)
return "{}/{} : {} {}".format(self.pk, exams, lat, n)
def get_primary_answer(self):
if self.normal: