aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-03-13 16:56:39 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-03-13 16:56:39 +0000
commit35256f7584b67f201946574c5f832ff1221ff1c6 (patch)
tree3e6002e03fa527ae5a9b0405370af89ba17d429c /ctrack/organisations
parent2ce247856a2be887875d892ae201f0ce73c799c2 (diff)
pop script now creates a dummy CAFSelfAssessment
Diffstat (limited to 'ctrack/organisations')
-rw-r--r--ctrack/organisations/management/commands/populate_db.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/ctrack/organisations/management/commands/populate_db.py b/ctrack/organisations/management/commands/populate_db.py
index edb070f..80ea5d0 100644
--- a/ctrack/organisations/management/commands/populate_db.py
+++ b/ctrack/organisations/management/commands/populate_db.py
@@ -173,6 +173,13 @@ class Command(BaseCommand):
type=etf3, user=user, participants=[inspectors[1], p2], related_caf=_caf
)
+ # We want to create a CAF with a bunch of scoring now...
+ _caf2 = CAF.objects.get(pk=1)
+ _completer = Person.objects.get(pk=1)
+ caf_assessment = CAFSelfAssessment.objects.create(
+ caf_id=_caf2.id, completer_id=_completer.id, comments="Random Comments"
+ )
+
# TODO - adapt this so that it records more than just Persons created
self.stdout.write(
self.style.SUCCESS(
@@ -193,10 +200,3 @@ class Command(BaseCommand):
name=random.choice(fnames), organisation=org, caf=caf,
)
- # We want to create a CAF with a bunch of scoring now...
- _caf2 = CAF.objects.get(pk=2)
- _completer = Person.objects.get(pk=1)
- caf_assessment = CAFSelfAssessment(
- caf=_caf2, completer=_completer, comments="Random Comments"
- )
- caf_assessment.save()