diff --git a/django/core/management/sql.py b/django/core/management/sql.py
old mode 100644
new mode 100755
index 298882f..efdc2e0
a
|
b
|
def sql_custom(app, style, connection):
|
134 | 134 | |
135 | 135 | return output |
136 | 136 | |
137 | | def sql_indexes(app, style, connection): |
| 137 | def sql_indexes(app, style, connection, include_auto_created=True): |
138 | 138 | "Returns a list of the CREATE INDEX SQL statements for all models in the given app." |
139 | 139 | output = [] |
140 | | for model in models.get_models(app): |
| 140 | for model in models.get_models(app, include_auto_created): |
141 | 141 | output.extend(connection.creation.sql_indexes_for_model(model, style)) |
142 | 142 | return output |
143 | 143 | |