aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/management/commands/populate_db.py
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-02-26 22:04:26 +0000
committerMatthew Lemon <matt@matthewlemon.com>2020-02-26 22:04:26 +0000
commit77572ddf5122947d98a26082d774d6d2c0a74d16 (patch)
tree45c0b8ecc37dcc8da96da7ac69371af5a2e8d16a /ctrack/organisations/management/commands/populate_db.py
parent70a8f6e37a462f2508ed024b2ee34f0df6b16a3b (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.py5
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])