From 5d489ef3685b32ee5e9c68839b1e187870c0d659 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 22 May 2020 16:22:30 +0100 Subject: started work on optional User as organisation.Person object - tests --- ctrack/organisations/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ctrack/organisations') diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index b14b03b..b11e97b 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -41,7 +41,7 @@ class Person(models.Model): (6, "Other"), ] - def get_sentinel_user(): + def get_sentinel_user(): # type: ignore """ We need this so that we can ensure models.SET() is applied with a callable to handle when Users are deleted from the system, preventing the Person objects @@ -110,7 +110,7 @@ class Organisation(models.Model): (3, "NA"), ] - def get_sentinel_user(): + def get_sentinel_user(): # type: ignore """ We need this so that we can ensure models.SET() is applied with a callable to handle when Users are deleted from the system, preventing the Organisations -- cgit v1.2.3