diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-05-05 09:26:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-05 09:26:51 +0200 |
| commit | ca5d3c99efb1bcf181e923dcd00c4679ab6174ef (patch) | |
| tree | dd8fc53100f472f7a814bf91e0e6a706b974cd01 /django/db/backends/sqlite3 | |
| parent | 024954aad4c422a091b7afab42fff1a9d7478fce (diff) | |
Refs #27236 -- Made more cosmetic edits to Meta.index_together deprecation.
Diffstat (limited to 'django/db/backends/sqlite3')
| -rw-r--r-- | django/db/backends/sqlite3/schema.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/django/db/backends/sqlite3/schema.py b/django/db/backends/sqlite3/schema.py index 89867b6623..095304c095 100644 --- a/django/db/backends/sqlite3/schema.py +++ b/django/db/backends/sqlite3/schema.py @@ -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, |
