diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-02-25 08:19:35 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-02-25 08:19:35 +0000 |
commit | 9269f3c3798b677b4e46abcc5df5f869c9cb9164 (patch) | |
tree | b35b4b6b0e7407e6056084b8e4ad19614e612478 /ctrack/organisations/management/commands/populate_db.py | |
parent | fdf52fb15cb594f8717b852c33a292149a21b8b8 (diff) |
populate now does gradings
Diffstat (limited to 'ctrack/organisations/management/commands/populate_db.py')
-rw-r--r-- | ctrack/organisations/management/commands/populate_db.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ctrack/organisations/management/commands/populate_db.py b/ctrack/organisations/management/commands/populate_db.py index db45d50..3335a11 100644 --- a/ctrack/organisations/management/commands/populate_db.py +++ b/ctrack/organisations/management/commands/populate_db.py @@ -3,6 +3,7 @@ from random import randint, choice from django.core.management import BaseCommand from django.core.management import CommandParser +from ctrack.caf.tests.factories import GradingFactory from ctrack.organisations.models import AddressType from ctrack.organisations.models import Mode from ctrack.organisations.models import Submode @@ -103,3 +104,11 @@ class Command(BaseCommand): ee1 = EngagementEventFactory.create(type=etf1, user=user, participants=[p1, p2]) ee2 = EngagementEventFactory.create(type=etf2, user=user, participants=[p3]) + + # Quality gradings + for g in ["Q1", "Q2", "Q3", "Q4", "Q5"]: + GradingFactory.create(descriptor=g, type="QUALITY") + + # Confidence gradings + for g in ["C1", "C2", "C3", "C4", "C5"]: + GradingFactory.create(descriptor=g, type="CONFIDENCE") |