diff options
| author | Tim Graham <timograham@gmail.com> | 2017-08-08 08:55:14 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-08-08 09:48:21 -0400 |
| commit | 479554f569abe5dbca980ac930fa1f474ef17c6e (patch) | |
| tree | 4ffd9a5a6f28ea84f18a03069f7546d7c804bafa | |
| parent | 05a828a1aea83f499da15dbaaa98a4ce21f7381b (diff) | |
[1.11.x] Fixed #28471 -- Clarified that Meta.indexes is preferred to index_together.
Backport of d18227e341ed044980d02a1f65f3874166552ded from master
| -rw-r--r-- | docs/ref/models/options.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt index 0e885dfae6..63a4fc1b79 100644 --- a/docs/ref/models/options.txt +++ b/docs/ref/models/options.txt @@ -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 = [ |
