#15216: list/set inconsistency breaks syncdb
------------------------------------------+---------------------------------
 Reporter:  arthur@…                      |          Owner:  nobody    
   Status:  new                           |      Milestone:            
Component:  Database layer (models, ORM)  |        Version:  SVN       
 Keywords:                                |   Triage Stage:  Unreviewed
Has patch:  1                             |  
------------------------------------------+---------------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15216>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to