'Returns the CREATE INDEX SQL statements for a single model.'

def sql_indexes_for_model(self, model, style):

    if ((not model._meta.managed) or model._meta.proxy or model._meta.swapped):
        return []
    output = []
    for f in model._meta.local_fields:
        output.extend(self.sql_indexes_for_field(model, f, style))
    for fs in model._meta.index_together:
        fields = [model._meta.get_field_by_name(f)[0] for f in fs]
        output.extend(self.sql_indexes_for_fields(model, fields, style))
    return output
