diff options
author | Yulqen <246857+yulqen@users.noreply.github.com> | 2024-09-10 15:58:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 15:58:55 +0100 |
commit | dcfe6d87098bbe064d2db268f0972865c3d412bf (patch) | |
tree | 2b82df07a5290f80f25e9780596cbce0f128454f /engagements/utils.py | |
parent | 7ddc22b821f405546786977225e7b194a19b2b77 (diff) | |
parent | 15b2dc965bfe2271d73476fcf9ff636c60113908 (diff) |
Merge pull request #106 from defencedigital/postgres-migration
Adds new Engagement Strategy stuff
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() |