﻿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
24579	With argparse on Python 3, the migrate management command fails when no database provided	Brandon Konkle	nobody	"On Python 3.4, when 'migrate' is invoked with no --database option, the command fails.

{{{
File ""/Users/brandon.konkle/code/django/django/core/management/commands/migrate.py"", line 70, in handle
    connection = connections[db]
  File ""/Users/brandon.konkle/code/django/django/db/utils.py"", line 234, in __getitem__
    if hasattr(self._connections, alias):
TypeError: hasattr(): attribute name must be string
}}}

This is because the newly-introduced argparse resolves `db = options.get('database')` to `None`, and Python 3 raises a TypeError when None is used as the first argument to `hasattr`.
"	Uncategorized	closed	Uncategorized	1.8	Normal	wontfix			Unreviewed	0	0	0	0	0	0
