summaryrefslogtreecommitdiffstats
path: root/engagements/utils.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-14 16:43:17 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-14 16:43:17 +0100
commitcb9f0fad4140c9cfff63f056f88da1b8bdb2f9cc (patch)
tree8d88ffe146efffe47e22d1a79ef5757621c9aa38 /engagements/utils.py
parent41cf37ac30e2efac6427a4f126954a442579bc41 (diff)
Adds basic SOP model and adds it to admin
Diffstat (limited to 'engagements/utils.py')
-rw-r--r--engagements/utils.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/engagements/utils.py b/engagements/utils.py
index b80e74d..a22595e 100644
--- a/engagements/utils.py
+++ b/engagements/utils.py
@@ -14,7 +14,7 @@ from engagements.models import (
RegulatoryCycle,
RegulatoryRole,
)
-from instruments.models import Instrument, SubInstrument
+from instruments.models import SOP, Instrument, SubInstrument
from myuser.models import Team, TeamUser
@@ -69,6 +69,15 @@ def populate_database():
out["users"].append(u)
u.save()
+ # SOPs
+ SOP.objects.create(
+ name="SOP 1",
+ designation="SOP1",
+ sp_link="https://example.com",
+ draft_status="Draft",
+ author_lead=u1,
+ )
+
# RegulatoryRoles
RegulatoryRole.objects.all().delete()
RegulatoryRole.objects.create(