summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@rd.io>2012-11-04 10:16:06 -0800
committerAlex Gaynor <alex.gaynor@rd.io>2012-11-04 10:26:59 -0800
commit6f716e9e5f8f373f48b59791b80f0d68ce9e5bd2 (patch)
tree0037f965236d151fb5e6f278fcce2c86cd898470 /docs/ref
parent26e0651c42a70104d237b5433970158d27b244dc (diff)
[1.5.x] Fixed #5805 -- it is now possible to specify multi-column indexes. Thanks to jgelens for the original patch. Backport of 4285571c5a9bf6ca3cb7c4d774942b9ae5b537e4.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/options.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index c5ae8398ea..ab944d7dda 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -261,6 +261,21 @@ Django quotes column and table names behind the scenes.
:class:`~django.db.models.ManyToManyField`, try using a signal or
an explicit :attr:`through <ManyToManyField.through>` model.
+``index_together``
+
+.. versionadded:: 1.5
+
+.. attribute:: Options.index_together
+
+ Sets of field names that, taken together, are indexed::
+
+ index_together = [
+ ["pub_date", "deadline"],
+ ]
+
+ This list of fields will be indexed together (i.e. the appropriate
+ ``CREATE INDEX`` statement will be issued.)
+
``verbose_name``
----------------