'Create the references to other tables required by a many-to-many table'

def sql_for_inline_many_to_many_references(self, model, field, style):

    import warnings
    warnings.warn('Database    creation    API    for    m2m    tables    has    been    deprecated.    M2M    models    are    now    automatically    generated', PendingDeprecationWarning)
    from django.db import models
    opts = model._meta
    qn = self.connection.ops.quote_name
    table_output = [('                %s    %s    %s    %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    REFERENCES'), style.SQL_TABLE(qn(opts.db_table)), style.SQL_FIELD(qn(opts.pk.column)), self.connection.ops.deferrable_sql())), ('                %s    %s    %s    %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    REFERENCES'), style.SQL_TABLE(qn(field.rel.to._meta.db_table)), style.SQL_FIELD(qn(field.rel.to._meta.pk.column)), self.connection.ops.deferrable_sql()))]
    deferred = []
    return (table_output, deferred)
