diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-02-26 22:04:26 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-02-26 22:04:26 +0000 |
commit | 77572ddf5122947d98a26082d774d6d2c0a74d16 (patch) | |
tree | 45c0b8ecc37dcc8da96da7ac69371af5a2e8d16a /ctrack/organisations/management/commands/populate_db.py | |
parent | 70a8f6e37a462f2508ed024b2ee34f0df6b16a3b (diff) |
tweaks - added factories for CAFFileStore and DocumentFile
Diffstat (limited to 'ctrack/organisations/management/commands/populate_db.py')
-rw-r--r-- | ctrack/organisations/management/commands/populate_db.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ctrack/organisations/management/commands/populate_db.py b/ctrack/organisations/management/commands/populate_db.py index 3335a11..bcecc1a 100644 --- a/ctrack/organisations/management/commands/populate_db.py +++ b/ctrack/organisations/management/commands/populate_db.py @@ -3,7 +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.caf.tests.factories import GradingFactory, CAFFileStoreFactory from ctrack.organisations.models import AddressType from ctrack.organisations.models import Mode from ctrack.organisations.models import Submode @@ -112,3 +112,6 @@ class Command(BaseCommand): # Confidence gradings for g in ["C1", "C2", "C3", "C4", "C5"]: GradingFactory.create(descriptor=g, type="CONFIDENCE") + + # File store + fs = CAFFileStoreFactory.create(physical_location_organistion=orgs[1]) |