Fixed #21770 -- Updated autocomplete for app-loading.

Thanks dfunckt for the report.
This commit is contained in:
Aymeric Augustin 2014-01-12 22:29:27 +01:00
parent d562527a16
commit 0a7588dd3f
1 changed files with 2 additions and 1 deletions

View File

@ -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: