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]",
version=get_version(),
option_list=BaseCommand.option_list)
self.autocomplete()
try:
options, args = parser.parse_args(self.argv)
handle_default_options(options)
@ -391,6 +390,8 @@ class ManagementUtility(object):
else:
django.setup()
self.autocomplete()
try:
subcommand = self.argv[1]
except IndexError: