aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/core/management/commands
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/core/management/commands')
-rw-r--r--ctrack/core/management/commands/populate_db.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/ctrack/core/management/commands/populate_db.py b/ctrack/core/management/commands/populate_db.py
index 5b8f541..fe6aa4e 100644
--- a/ctrack/core/management/commands/populate_db.py
+++ b/ctrack/core/management/commands/populate_db.py
@@ -1,6 +1,5 @@
-
from django.core.management import BaseCommand
-from django.core.management import CommandParser
+
from ctrack.core.utils import populate_db
@@ -9,16 +8,12 @@ class Command(BaseCommand):
Creates a large test fixture.
"""
- def add_arguments(self, parser: CommandParser) -> None:
- parser.add_argument("number", nargs=1, type=int)
-
def handle(self, *args, **options):
- number = options["number"][0]
- populate_db(number)
+ populate_db()
# TODO - adapt this so that it records more than just Persons created
self.stdout.write(
self.style.SUCCESS(
- f"Created {number} Person object[s]! Go forth and multiply."
+ f"Created test fixture successfully."
)
)