Ticket #11605: patch.diff

File patch.diff, 1.2 KB (added by jds, 15 years ago)

agains 11368

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

     
    6464                    print "Processing %s.%s model" % (app_name, model._meta.object_name)
    6565                if connection.introspection.table_name_converter(model._meta.db_table) in tables:
    6666                    continue
     67                # From #11428
     68                if model._meta.proxy:
     69                    continue
     70                # Both of these come back empty for proxy models...
    6771                sql, references = connection.creation.sql_create_model(model, self.style, seen_models)
    6872                seen_models.add(model)
    6973                created_models.add(model)
     
    7680                    print "Creating table %s" % model._meta.db_table
    7781                for statement in sql:
    7882                    cursor.execute(statement)
     83                # ... but the table name (same as parent model) is now "handled"
    7984                tables.append(connection.introspection.table_name_converter(model._meta.db_table))
    8085
    8186        # Create the m2m tables. This must be done after all tables have been created
Back to Top