This function is unused and should have been removed a few releases ago.

This commit is contained in:
Alex Gaynor 2013-02-19 18:05:02 -08:00
parent 9dde0dc631
commit fd3a066ae3
1 changed files with 0 additions and 23 deletions

View File

@ -41,26 +41,3 @@ class DatabaseCreation(BaseDatabaseCreation):
def sql_for_inline_foreign_key_references(self, model, field, known_models, style): def sql_for_inline_foreign_key_references(self, model, field, known_models, style):
"All inline references are pending under MySQL" "All inline references are pending under MySQL"
return [], True return [], True
def sql_for_inline_many_to_many_references(self, model, field, style):
from django.db import models
opts = model._meta
qn = self.connection.ops.quote_name
table_output = [
' %s %s %s,' %
(style.SQL_FIELD(qn(field.m2m_column_name())),
style.SQL_COLTYPE(models.ForeignKey(model).db_type(connection=self.connection)),
style.SQL_KEYWORD('NOT NULL')),
' %s %s %s,' %
(style.SQL_FIELD(qn(field.m2m_reverse_name())),
style.SQL_COLTYPE(models.ForeignKey(field.rel.to).db_type(connection=self.connection)),
style.SQL_KEYWORD('NOT NULL'))
]
deferred = [
(field.m2m_db_table(), field.m2m_column_name(), opts.db_table,
opts.pk.column),
(field.m2m_db_table(), field.m2m_reverse_name(),
field.rel.to._meta.db_table, field.rel.to._meta.pk.column)
]
return table_output, deferred