From cb9f0fad4140c9cfff63f056f88da1b8bdb2f9cc Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 14 Oct 2024 16:43:17 +0100 Subject: Adds basic SOP model and adds it to admin --- engagements/utils.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'engagements/utils.py') 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( -- cgit v1.2.3