diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-16 10:22:02 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-16 10:22:02 +0100 |
commit | 2b11d0e43378c27b250e93e91b9bdc10346af44e (patch) | |
tree | dccbd0cd42e2400e3fa5fb363ab9fcd3616f9393 /ctrack/organisations/models.py | |
parent | 7637504292d8fd183af8f4bcbb968fc1b69cd8f7 (diff) |
added basic lead and deputy inspector to organisation model
Diffstat (limited to 'ctrack/organisations/models.py')
-rw-r--r-- | ctrack/organisations/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index 90d6f88..f884d39 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -136,6 +136,8 @@ class Organisation(models.Model): designation_type = models.IntegerField(choices=DESIGNATION_TYPE, default=1) registered_company_name = models.CharField(max_length=255, blank=True) registered_company_number = models.CharField(max_length=100, blank=True) + lead_inspector = models.ForeignKey("users.User", blank=False, null=True, on_delete=models.SET(get_sentinel_user), related_name="lead_inspector") + deputy_lead_inspector = models.ForeignKey("users.User", blank=False, null=True, on_delete=models.SET(get_sentinel_user), related_name="deputy_inspector") date_updated = models.DateField(auto_now=True) # updated_by = models.ForeignKey( # get_user_model(), on_delete=models.SET(get_sentinel_user) |