aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-16 13:54:53 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-16 13:54:53 +0100
commit9f9528a0cc7b05166669fee163d655e5e1b7e563 (patch)
tree6997bd889db2fb672ce09f540d5dc17434660944 /ctrack/organisations/models.py
parenteb8497dcd3758d20447d4de977780c2c78a38613 (diff)
participants added to create new simple event form and can filter by org when landed from org detail
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/models.py3
1 files changed, 3 insertions, 0 deletions
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)