aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/organisations/models.py')
-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)