|
@@ -1,11 +1,15 @@
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
|
|
+from dbsynce.lib.seed import *
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
- help = "My shiny new management command."
|
|
|
-
|
|
|
- def add_arguments(self, parser):
|
|
|
- parser.add_argument('sample', nargs='+')
|
|
|
+ help = "Create initial data."
|
|
|
|
|
|
def handle(self, *args, **options):
|
|
|
- raise NotImplementedError()
|
|
|
+ self.stdout.write(self.style.SUCCESS('Start seeding'))
|
|
|
+
|
|
|
+ create_initial_groups()
|
|
|
+ create_initial_ticket_lists()
|
|
|
+
|
|
|
+ self.stdout.write(self.style.SUCCESS('Successful seeding'))
|
|
|
+ # raise NotImplementedError()
|