From 6a1e0378973e2ec69eb1d854c900db16e7a7d795 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 21 Jan 2021 18:41:01 +0000 Subject: [PATCH] . --- rapids/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rapids/models.py b/rapids/models.py index f73c1eed..1a4e7600 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -198,6 +198,11 @@ class Rapid(models.Model): abnormalities = ", ".join([i.name for i in self.abnormality.all()]) return abnormalities + def get_examinations(self): + """Returns a comma seperated text list of regions""" + examinations = ", ".join([i.name for i in self.examination.all()]) + return examinations + def __str__(self): n = "Normal" if not self.normal: