diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-03-06 16:05:05 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-03-06 16:05:05 +0000 |
commit | ff85a615721dc048046b212fe07edbced8fe20fc (patch) | |
tree | 442e0503cfe69ddd907c94073361f8cdbbaebd69 /ctrack/caf/models.py | |
parent | b69b8f797c710718df3cb24c5ec83d7d6dd1d0df (diff) |
first attempt at a custom manager for applicablesystem model
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctrack/caf/models.py b/ctrack/caf/models.py index 2069612..a031657 100644 --- a/ctrack/caf/models.py +++ b/ctrack/caf/models.py @@ -1,5 +1,6 @@ from django.db import models +from ctrack.caf.managers import ApplicableSystemManager from ctrack.organisations.models import Organisation, Person @@ -55,6 +56,8 @@ class ApplicableSystem(models.Model): class Meta: verbose_name = "Applicable System" + objects = ApplicableSystemManager() + def __str__(self): return f"{self.organisation.name} | {self.name}" |