diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-10 12:11:12 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-10 12:11:12 +0100 |
commit | 5fb0621c53967bf24f4411f579712223e96b296a (patch) | |
tree | b99a1d823e27e0eb6ebf90f9cdf341edda963d69 /engagements/utils.py | |
parent | f96b5ba4052c28d2bd2c03cefba3a2e828dd059d (diff) |
Adds RegulatoryCycle model
Diffstat (limited to 'engagements/utils.py')
-rw-r--r-- | engagements/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engagements/utils.py b/engagements/utils.py index 2c4ff72..3b414e9 100644 --- a/engagements/utils.py +++ b/engagements/utils.py @@ -11,6 +11,7 @@ from engagements.models import ( Organisation, Person, RegulatedEntityType, + RegulatoryCycle, RegulatoryRole, ) from instruments.models import Instrument, SubInstrument @@ -88,6 +89,11 @@ def populate_database(): designator="JSP628", owner=o1, ) + # Some Regulatory Cycles + RegulatoryCycle.objects.create(start_date="2022-01-01", end_date="2022-12-31") + RegulatoryCycle.objects.create(start_date="2023-01-01", end_date="2023-12-31") + RegulatoryCycle.objects.create(start_date="2024-01-01", end_date="2024-12-31") + # Create the DSCs Faker.seed(0) SubInstrument.objects.all().delete() |