'Return the CREATE TABLE statments for all the many-to-many tables defined on a model'

def sql_for_many_to_many(self, model, style):

    import warnings
    warnings.warn('Database    creation    API    for    m2m    tables    has    been    deprecated.    M2M    models    are    now    automatically    generated', PendingDeprecationWarning)
    output = []
    for f in model._meta.local_many_to_many:
        if (model._meta.managed or f.rel.to._meta.managed):
            output.extend(self.sql_for_many_to_many_field(model, f, style))
    return output
