From ff85a615721dc048046b212fe07edbced8fe20fc Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 6 Mar 2020 16:05:05 +0000 Subject: first attempt at a custom manager for applicablesystem model --- ctrack/caf/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ctrack/caf/models.py') 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}" -- cgit v1.2.3