Ticket #12286: syncdb_proxy_model.diff

File syncdb_proxy_model.diff, 791 bytes (added by flyingfred0, 15 years ago)

Patch to fix 1.1.X branch

  • django/core/management/commands/syncdb.py

     
    7676                    print "Creating table %s" % model._meta.db_table
    7777                for statement in sql:
    7878                    cursor.execute(statement)
    79                 tables.append(connection.introspection.table_name_converter(model._meta.db_table))
     79                if sql:
     80                    tables.append(connection.introspection.table_name_converter(model._meta.db_table))
    8081
    8182        # Create the m2m tables. This must be done after all tables have been created
    8283        # to ensure that all referred tables will exist.
Back to Top