aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register/models.py
diff options
context:
space:
mode:
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}"
-
-