diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-16 13:54:53 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-16 14:01:06 +0100 |
commit | d55de5277f54a2a88eae8b7ec27585bc9a0df165 (patch) | |
tree | 97f4bd87a9394355ab58b34e3a1abca12ebc344e /ctrack/organisations/models.py | |
parent | eb8497dcd3758d20447d4de977780c2c78a38613 (diff) |
participants added to create new simple event form and can filter by org when landed from org detail
Diffstat (limited to 'ctrack/organisations/models.py')
-rw-r--r-- | ctrack/organisations/models.py | 3 |
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) |