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:
@@ -28,8 +28,8 @@ class Command(management.BaseCommand):
|
|||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--no-javascript', action='store_true', dest='no_javascript',
|
'--no-dependencies', action='store_true', dest='no_dependencies',
|
||||||
help='Don\'t download the JavaScript dependencies.',
|
help='Don\'t download dependencies.',
|
||||||
)
|
)
|
||||||
|
|
||||||
def initialize_system(self, force=False):
|
def initialize_system(self, force=False):
|
||||||
@@ -88,9 +88,9 @@ class Command(management.BaseCommand):
|
|||||||
self.initialize_system(force=options.get('force', False))
|
self.initialize_system(force=options.get('force', False))
|
||||||
pre_initial_setup.send(sender=self)
|
pre_initial_setup.send(sender=self)
|
||||||
|
|
||||||
if not options.get('no_javascript', False):
|
if not options.get('no_dependencies', False):
|
||||||
management.call_command(
|
management.call_command(
|
||||||
command_name='installjavascript', interactive=False
|
command_name='installdependencies', interactive=False
|
||||||
)
|
)
|
||||||
|
|
||||||
management.call_command(
|
management.call_command(
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ class Command(management.BaseCommand):
|
|||||||
|
|
||||||
def add_arguments(self, parser):
|
def add_arguments(self, parser):
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--no-javascript', action='store_true', dest='no_javascript',
|
'--no-dependencies', action='store_true', dest='no_dependencies',
|
||||||
help='Don\'t download the JavaScript dependencies.',
|
help='Don\'t download dependencies.',
|
||||||
)
|
)
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
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(
|
management.call_command(
|
||||||
command_name='installjavascript', interactive=False
|
command_name='installdependencies', interactive=False
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user