Fixed #21770 -- Updated autocomplete for app-loading.
Thanks dfunckt for the report.
This commit is contained in:
parent
d562527a16
commit
0a7588dd3f
|
@ -376,7 +376,6 @@ class ManagementUtility(object):
|
||||||
parser = LaxOptionParser(usage="%prog subcommand [options] [args]",
|
parser = LaxOptionParser(usage="%prog subcommand [options] [args]",
|
||||||
version=get_version(),
|
version=get_version(),
|
||||||
option_list=BaseCommand.option_list)
|
option_list=BaseCommand.option_list)
|
||||||
self.autocomplete()
|
|
||||||
try:
|
try:
|
||||||
options, args = parser.parse_args(self.argv)
|
options, args = parser.parse_args(self.argv)
|
||||||
handle_default_options(options)
|
handle_default_options(options)
|
||||||
|
@ -391,6 +390,8 @@ class ManagementUtility(object):
|
||||||
else:
|
else:
|
||||||
django.setup()
|
django.setup()
|
||||||
|
|
||||||
|
self.autocomplete()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subcommand = self.argv[1]
|
subcommand = self.argv[1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|
Loading…
Reference in New Issue