Update command options

Match the rename of the installjavascript command rename
to installdependencies.

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-07-19 20:02:40 -04:00
parent d3a53fb53a
commit e889021f43
2 changed files with 8 additions and 8 deletions

View File

@@ -28,8 +28,8 @@ class Command(management.BaseCommand):
)
parser.add_argument(
'--no-javascript', action='store_true', dest='no_javascript',
help='Don\'t download the JavaScript dependencies.',
'--no-dependencies', action='store_true', dest='no_dependencies',
help='Don\'t download dependencies.',
)
def initialize_system(self, force=False):
@@ -88,9 +88,9 @@ class Command(management.BaseCommand):
self.initialize_system(force=options.get('force', False))
pre_initial_setup.send(sender=self)
if not options.get('no_javascript', False):
if not options.get('no_dependencies', False):
management.call_command(
command_name='installjavascript', interactive=False
command_name='installdependencies', interactive=False
)
management.call_command(

View File

@@ -11,8 +11,8 @@ class Command(management.BaseCommand):
def add_arguments(self, parser):
parser.add_argument(
'--no-javascript', action='store_true', dest='no_javascript',
help='Don\'t download the JavaScript dependencies.',
'--no-dependencies', action='store_true', dest='no_dependencies',
help='Don\'t download dependencies.',
)
def handle(self, *args, **options):
@@ -25,9 +25,9 @@ class Command(management.BaseCommand):
)
)
if not options.get('no_javascript', False):
if not options.get('no_dependencies', False):
management.call_command(
command_name='installjavascript', interactive=False
command_name='installdependencies', interactive=False
)
try: