Ticket #11605: patch.diff
File patch.diff, 1.2 KB (added by , 15 years ago) |
---|
-
django/core/management/commands/syncdb.py
64 64 print "Processing %s.%s model" % (app_name, model._meta.object_name) 65 65 if connection.introspection.table_name_converter(model._meta.db_table) in tables: 66 66 continue 67 # From #11428 68 if model._meta.proxy: 69 continue 70 # Both of these come back empty for proxy models... 67 71 sql, references = connection.creation.sql_create_model(model, self.style, seen_models) 68 72 seen_models.add(model) 69 73 created_models.add(model) … … 76 80 print "Creating table %s" % model._meta.db_table 77 81 for statement in sql: 78 82 cursor.execute(statement) 83 # ... but the table name (same as parent model) is now "handled" 79 84 tables.append(connection.introspection.table_name_converter(model._meta.db_table)) 80 85 81 86 # Create the m2m tables. This must be done after all tables have been created