def get_sql_indexes(app):
 from django.db import models
 output = []
 for model in models.get_models(app):
  output.extend(get_sql_indexes_for_model(model))
 return output

def get_sql_indexes ( app ) : from django . db import models output = [ ] for model in models . get_models ( app ) : output . extend ( get_sql_indexes_for_model ( model ) ) return output
returns a list of the create index sql statements for all models in the given app .