aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-02-29 08:37:41 +0000
committerMatthew Lemon <matt@matthewlemon.com>2020-02-29 08:37:41 +0000
commitf4ea56dbf7da549aed3847c109a35b3c6ee48067 (patch)
tree416f579a094c0a0124fef2af2831214a46264177 /ctrack/register
parentd74339006cb6a1e42aef6622fa9b7e5eca861ca2 (diff)
todo included for next step
Diffstat (limited to 'ctrack/register')
-rw-r--r--ctrack/register/models.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ctrack/register/models.py b/ctrack/register/models.py
index 60733c5..5f585c3 100644
--- a/ctrack/register/models.py
+++ b/ctrack/register/models.py
@@ -37,6 +37,16 @@ class EngagementEvent(models.Model):
short_description = models.CharField(
max_length=50, help_text="Short description of the event"
)
+ # TODO - Do we need an "inspector_engagement" field here?
+ # We want an EngagementEvent to cover interactions between
+ # Persons (industry people) and inspectors (Users). We don't want
+ # to have to create Person() objects for each inspector, do we?
+ # Actually, if we do, we could allow for the case where a ctrack user
+ # is able to do delegated work for inspectors. So the task here is to
+ # adapt the factories so half a dozen inspectors are created as Persons
+ # and given the role of DfT Compliance Inspector, which have to be created
+ # also. Then we can start building out the CAF factories to include stuff
+ # list submission date, submission recipient, etc.
participants = models.ManyToManyField(Person)
user = models.ForeignKey(get_user_model(), on_delete=models.SET(get_sentinel_user))
date = models.DateTimeField()