From 9cccf59db53e4b793e6932a01acb1b990fa87257 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 14 Sep 2007 20:36:53 +0000 Subject: 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 --- docs/model-api.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') 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`` ---------------- -- cgit v1.3