mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes.
This also deprecates AlterIndexTogether migration operation.
This commit is contained in:
@@ -255,7 +255,7 @@ class OperationTestBase(MigrationTestBase):
|
||||
unique_together=False,
|
||||
options=False,
|
||||
db_table=None,
|
||||
index_together=False,
|
||||
index_together=False, # RemovedInDjango51Warning.
|
||||
constraints=None,
|
||||
indexes=None,
|
||||
):
|
||||
@@ -263,6 +263,7 @@ class OperationTestBase(MigrationTestBase):
|
||||
# Make the "current" state.
|
||||
model_options = {
|
||||
"swappable": "TEST_SWAP_MODEL",
|
||||
# RemovedInDjango51Warning.
|
||||
"index_together": [["weight", "pink"]] if index_together else [],
|
||||
"unique_together": [["pink", "weight"]] if unique_together else [],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user