summaryrefslogtreecommitdiff
path: root/docs/model-api.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-09-14 20:36:53 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-09-14 20:36:53 +0000
commit9cccf59db53e4b793e6932a01acb1b990fa87257 (patch)
tree82defedddb4f36584d89b8267c8ce76aee902046 /docs/model-api.txt
parent3da4c0ab9292e8e3378b7314174f0bbcc4e692d1 (diff)
Fixed #5460 -- unique_together now accepts a single tuple for convenience. Thanks, Deryck Hodge
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
-rw-r--r--docs/model-api.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt
index d6327bc795..a8af05f676 100644
--- a/docs/model-api.txt
+++ b/docs/model-api.txt
@@ -1226,6 +1226,13 @@ 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).
+**New in Django development version**
+
+For convenience, unique_together can be a single list when dealing
+with a single set of fields::
+
+ unique_together = ("driver", "restaurant")
+
``verbose_name``
----------------