mirror of
https://github.com/django/django.git
synced 2025-04-15 04:44:37 +00:00
[1.11.x] Fixed #28471 -- Clarified that Meta.indexes is preferred to index_together.
Backport of d18227e341ed044980d02a1f65f3874166552ded from master
This commit is contained in:
parent
05a828a1ae
commit
479554f569
@ -445,6 +445,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…
x
Reference in New Issue
Block a user