|
@@ -272,6 +272,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
|
|
for unique in model._meta.unique_together
|
|
|
]
|
|
|
|
|
|
+ # RemovedInDjango51Warning.
|
|
|
# Work out the new value for index_together, taking renames into
|
|
|
# account
|
|
|
index_together = [
|
|
@@ -301,7 +302,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
|
|
"app_label": model._meta.app_label,
|
|
|
"db_table": model._meta.db_table,
|
|
|
"unique_together": unique_together,
|
|
|
- "index_together": index_together,
|
|
|
+ "index_together": index_together, # RemovedInDjango51Warning.
|
|
|
"indexes": indexes,
|
|
|
"constraints": constraints,
|
|
|
"apps": apps,
|
|
@@ -317,7 +318,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
|
|
"app_label": model._meta.app_label,
|
|
|
"db_table": "new__%s" % strip_quotes(model._meta.db_table),
|
|
|
"unique_together": unique_together,
|
|
|
- "index_together": index_together,
|
|
|
+ "index_together": index_together, # RemovedInDjango51Warning.
|
|
|
"indexes": indexes,
|
|
|
"constraints": constraints,
|
|
|
"apps": apps,
|