aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-09-29 12:03:54 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-09-29 12:41:34 +0100
commit5314ffb3308a02de8e8bd51cb4ce1784181a4a81 (patch)
tree016fdbf35b37f106bb91b00ab652e254dc4f3713 /ctrack/register/models.py
parentcf4ee94db89e697d625106e78831b7e219cd8c03 (diff)
Can now add an engagement event from org detail with only relevant people in dropdown
nearly converted engagement event form so that it is based on org tidy in prep for big change to engagement event form link to related CAF included in the OES engagements table formatting
Diffstat (limited to '')
-rw-r--r--ctrack/register/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctrack/register/models.py b/ctrack/register/models.py
index 8a01875..4231dd0 100644
--- a/ctrack/register/models.py
+++ b/ctrack/register/models.py
@@ -7,6 +7,7 @@ from django.db import models
from ctrack.caf.models import CAF
from ctrack.organisations.models import Person
+
def _style_descriptor(days: int) -> str:
if days < 1:
return "red"
@@ -22,6 +23,7 @@ def _day_string(days: int) -> str:
else:
return "day"
+
class EngagementType(models.Model):
"""
Examples here are Phone, Email, Letter, Site visit, Meeting, Audit, Inspection, etc.
@@ -78,5 +80,3 @@ class EngagementEvent(models.Model):
d = self.date.date()
iso_format_date = d.isoformat()
return f"{iso_format_date} | {self.type.descriptor} | {self.short_description}"
-
-