summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorRaúl Cumplido <raulcd@tid.es>2012-06-07 13:46:06 +0200
committerTim Graham <timograham@gmail.com>2012-06-30 17:16:40 -0400
commit55ffcf8e7b414a39e2dfc9c9eb4c5d3fa548e78e (patch)
treef9a4e9376c46d15bcf73ec5c228c1b8954da4dc4 /docs/ref/models
parent03896eb5df74a47237ec3ed9a73aadc925e90dbb (diff)
Fixed #18145 -- Improved documentation of unique_together type fields
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/options.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index 6ca3d3b2d0..9d076f6274 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -244,12 +244,12 @@ Django quotes column and table names behind the scenes.
unique_together = (("driver", "restaurant"),)
- This is a list of lists of fields that must be unique when considered together.
+ This is a tuple of tuples that must be unique when considered together.
It's used in the Django admin and is enforced at the database level (i.e., the
appropriate ``UNIQUE`` statements are included in the ``CREATE TABLE``
statement).
- For convenience, unique_together can be a single list when dealing with a single
+ For convenience, unique_together can be a single tuple when dealing with a single
set of fields::
unique_together = ("driver", "restaurant")