﻿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
15216	list/set inconsistency breaks syncdb	arthur@…	nobody	"Found on SVN as of rev 15400.

{{{
$ python manage.py syncdb
Creating tables ...
Traceback (most recent call last):
  File ""manage.py"", line 11, in <module>
    execute_manager(settings)
  File ""django/core/management/__init__.py"", line 438, in execute_manager
    utility.execute()
  File ""django/core/management/__init__.py"", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""django/core/management/base.py"", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""django/core/management/base.py"", line 220, in execute
    output = self.handle(*args, **options)
  File ""django/core/management/base.py"", line 351, in handle
    return self.handle_noargs(**options)
  File ""django/core/management/commands/syncdb.py"", line 102, in handle_noargs
    tables.append(connection.introspection.table_name_converter(model._meta.db_table))
AttributeError: 'set' object has no attribute 'append'
}}}




{{{tables}}} is expected to be a {{{list}}} here but is created at {{{django/trunk/django/db/backends/__init__.py BaseDatabaseIntrospection.django_tables_name}}} as a {{{set}}} (but a {{{list}}} instead if {{{only_existing}}} is {{{True}}}..).
A simple {{{tables = list(table)}}} at the appropriate line in {{{django_tables_names}}} has fixed syncdb for me."	Bug	closed	Database layer (models, ORM)	dev	Normal	fixed	inspectdb		Accepted	1	0	1	0	0	0
