Ticket #12712: syncdb-fix.patch
File syncdb-fix.patch, 945 bytes (added by , 15 years ago) |
---|
-
django/core/management/commands/syncdb.py
71 71 if verbosity >= 2: 72 72 print "Processing %s.%s model" % (app_name, model._meta.object_name) 73 73 opts = model._meta 74 if (connection.introspection.table_name_converter(opts.db_table) in tables or 75 (opts.auto_created and 76 connection.introspection.table_name_converter(opts.auto_created._meta.db_table) in tables)): 74 if connection.introspection.table_name_converter(opts.db_table) in tables: 77 75 continue 78 76 sql, references = connection.creation.sql_create_model(model, self.style, seen_models) 79 77 seen_models.add(model)