﻿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
12058	resetting an app (manage.py reset) with a --database option results in an AttributeError: 'str' object has no attribute 'introspection'	Lemuel Formacil	nobody	"when doing a manage.py reset of an app with a --database option results in

Traceback (most recent call last):
  File ""./manage.py"", line 11, in <module>
    execute_manager(settings)
  File ""/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py"", line 439, in execute_manager
    utility.execute()
  File ""/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py"", line 380, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/usr/local/lib/python2.6/dist-packages/django/core/management/base.py"", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""/usr/local/lib/python2.6/dist-packages/django/core/management/base.py"", line 222, in execute
    output = self.handle(*args, **options)
  File ""/usr/local/lib/python2.6/dist-packages/django/core/management/base.py"", line 286, in handle
    app_output = self.handle_app(app, **options)
  File ""/usr/local/lib/python2.6/dist-packages/django/core/management/commands/reset.py"", line 33, in handle_app
    sql_list = sql_reset(app, self.style, connection)
  File ""/usr/local/lib/python2.6/dist-packages/django/core/management/sql.py"", line 119, in sql_reset
    return sql_delete(app, style, connection) + sql_all(app, style, connection)
  File ""/usr/local/lib/python2.6/dist-packages/django/core/management/sql.py"", line 99, in sql_delete
    if connection.introspection.table_name_converter(model._meta.db_table) in table_names:
AttributeError: 'str' object has no attribute 'introspection'

this is because the ""dbs"" variable expects a list of connection instances but when given a --database option it is set with a list of the database name instead."		closed	Core (Management commands)	soc2009/multidb		fixed	multidb		Unreviewed	1	0	0	0	0	0
