mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #28471 -- Clarified that Meta.indexes is preferred to index_together.
This commit is contained in:
parent
09423db71a
commit
d18227e341
1 changed files with 6 additions and 0 deletions
|
@ -417,6 +417,12 @@ Django quotes column and table names behind the scenes.
|
|||
|
||||
.. attribute:: Options.index_together
|
||||
|
||||
.. admonition:: Use the :attr:`~Options.indexes` option instead.
|
||||
|
||||
The newer :attr:`~Options.indexes` option provides more functionality
|
||||
than ``index_together``. ``index_together`` may be deprecated in the
|
||||
future.
|
||||
|
||||
Sets of field names that, taken together, are indexed::
|
||||
|
||||
index_together = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue