﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24620	showmigrations broken in Django 1.8	Miguel Araujo	nobody	"After upgrading to Django 1.8 and running `python manage.py showmigrations` it breaks with the following stack trace:

{{{
Traceback (most recent call last):
  File ""manage.py"", line 20, in <module>
    execute_from_command_line(sys.argv)
  File ""/Users/map/.virtualenvs/odin/lib/python2.7/site-packages/django/core/management/__init__.py"", line 338, in execute_from_command_line
    utility.execute()
  File ""/Users/map/.virtualenvs/odin/lib/python2.7/site-packages/django/core/management/__init__.py"", line 330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/Users/map/.virtualenvs/odin/lib/python2.7/site-packages/django/core/management/base.py"", line 390, in run_from_argv
    self.execute(*args, **cmd_options)
  File ""/Users/map/.virtualenvs/odin/lib/python2.7/site-packages/django/core/management/base.py"", line 441, in execute
    output = self.handle(*args, **options)
  File ""/Users/map/.virtualenvs/odin/lib/python2.7/site-packages/django/core/management/commands/showmigrations.py"", line 32, in handle
    connection = connections[db]
  File ""/Users/map/.virtualenvs/odin/lib/python2.7/site-packages/django/db/utils.py"", line 234, in __getitem__
    if hasattr(self._connections, alias):
TypeError: hasattr(): attribute name must be string
}}}

This can be fixed adding  `use_argparse = True` to show migrations command class, so that add_arguments gets executed settting defaults. This way you get the expected response."	Bug	closed	Core (Management commands)	1.8	Normal	worksforme	showmigrations		Unreviewed	0	0	0	0	0	0
