From a9355a97b1e069b3291c878630f938782a887979 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Mon, 9 Oct 2023 12:56:05 -0500 Subject: [PATCH] Using quicksetup for importing using the new mehtd --- api/management/commands/quicksetup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/management/commands/quicksetup.py b/api/management/commands/quicksetup.py index 22dcc899..70b218b8 100644 --- a/api/management/commands/quicksetup.py +++ b/api/management/commands/quicksetup.py @@ -28,7 +28,8 @@ def handle(self, *args, **options): collect_static() self.stdout.write('Populating the v1 database...') - quickload.populate_db() + #quickload.populate_db() + import_v1() self.stdout.write('Populating the v2 database...') import_v2() @@ -42,6 +43,10 @@ def handle(self, *args, **options): self.stdout.write(self.style.SUCCESS('API setup complete.')) +def import_v1() -> None: + """Import the v1 apps' database models.""" + call_command('import', '--dir', 'data/v1') + def import_v2() -> None: """Import the v2 apps' database models.""" call_command('import', '--dir', 'data/v2')