diff options
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 7829b95..06ae037 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -141,6 +141,9 @@ class Organisation(models.Model): def __str__(self): return self.name + def primary_contacts(self): + return self.person_set.filter(primary_nis_contact=True) + class Address(models.Model): organisation = models.ForeignKey( |