Ticket #12286: 12286-r12948.diff

File 12286-r12948.diff, 681 bytes (added by Ramiro Morales, 14 years ago)
  • django/core/management/commands/syncdb.py

    diff -r 0dd8399ce9b7 django/core/management/commands/syncdb.py
    a b  
    9292                    print "Creating table %s" % model._meta.db_table
    9393                for statement in sql:
    9494                    cursor.execute(statement)
    95                 tables.append(connection.introspection.table_name_converter(model._meta.db_table))
     95                if sql:
     96                    tables.append(connection.introspection.table_name_converter(model._meta.db_table))
    9697
    9798
    9899        transaction.commit_unless_managed(using=db)
Back to Top