From 9f9528a0cc7b05166669fee163d655e5e1b7e563 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 16 Oct 2020 13:54:53 +0100 Subject: participants added to create new simple event form and can filter by org when landed from org detail --- ctrack/organisations/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ctrack/organisations/models.py') diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index f884d39..c7394e4 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -154,6 +154,9 @@ class Organisation(models.Model): def __str__(self): return self.name + def get_people(self): + return self.person_set.all() + def primary_contacts(self): return self.person_set.filter(primary_nis_contact=True) -- cgit v1.2.3