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')