summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-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``
----------------