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:20:42 -0400 |
| commit | d18227e341ed044980d02a1f65f3874166552ded (patch) | |
| tree | 697b8ebdd0023e60b873ceb45b45822149599621 /docs/ref | |
| parent | 09423db71a580c7210bbdfcf7fae3a6250356eff (diff) | |
Fixed #28471 -- Clarified that Meta.indexes is preferred to index_together.
Diffstat (limited to 'docs/ref')
| -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 e6e9348052..bf8cf10c33 100644 --- a/docs/ref/models/options.txt +++ b/docs/ref/models/options.txt @@ -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 = [ |
