From bb2ca9fe6cdd490526b44b30f207c8f743bfaa84 Mon Sep 17 00:00:00 2001 From: Anubhav Joshi Date: Sun, 2 Mar 2014 00:36:15 +0530 Subject: Fixed #22172 -- Allowed index_together to be a single list (rather than list of lists).. Thanks EmilStenstrom for the suggestion. --- docs/ref/models/options.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt index 3fe7526fa2..ef56b251a0 100644 --- a/docs/ref/models/options.txt +++ b/docs/ref/models/options.txt @@ -340,6 +340,13 @@ Django quotes column and table names behind the scenes. This list of fields will be indexed together (i.e. the appropriate ``CREATE INDEX`` statement will be issued.) + .. versionchanged:: 1.7 + + For convenience, ``index_together`` can be a single list when dealing with a single + set of fields:: + + index_together = ["pub_date", "deadline"] + ``verbose_name`` ---------------- -- cgit v1.3