summaryrefslogtreecommitdiffstats
path: root/engagements/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'engagements/models.py')
-rw-r--r--engagements/models.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/engagements/models.py b/engagements/models.py
index b0dfe2b..ef0aee3 100644
--- a/engagements/models.py
+++ b/engagements/models.py
@@ -27,6 +27,7 @@ class RegulatoryRole(Common):
class Person(Common):
"External person, rather than MOD at this point."
+
first_name = models.CharField(max_length=64, null=False, blank=False)
last_name = models.CharField(max_length=64, null=False, blank=False)
organisation = models.ForeignKey("Organisation", null=False, blank=False, on_delete=models.CASCADE)
@@ -240,3 +241,23 @@ class EngagementEffort(Common):
def __str__(self):
return f"{self.effort_type} effort for {self.engagement}: {self.proposed_end_date - self.proposed_start_date}"
+
+
+class RegulatoryCycle(Common):
+ start_date = models.DateField(null=False, blank=False)
+ end_date = models.DateField(null=False, blank=False)
+ description = models.TextField(max_length=1024, null=True, blank=True)
+
+ def get_year(self):
+ return str(self.start_date.year)
+
+ def __str__(self):
+ return f"Regulatory Cycle: {self.get_year()}"
+
+
+# class EngagementStrategy(Common):
+# name = models.CharField(max_length=128, null=False, blank=False)
+# start_date = models.DateField(null=False, blank=False)
+# end_date
+# description = models.TextField(max_length=1024)
+# engagement = models.ForeignKey(Engagement, on_delete=models.CASCADE)