Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #18145 -- Improved documentation of unique_together type fields

  • Loading branch information...
commit 55ffcf8e7b414a39e2dfc9c9eb4c5d3fa548e78e 1 parent 03896eb
Raúl Cumplido authored timgraham committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/models/options.txt
View
4 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")
Please sign in to comment.
Something went wrong with that request. Please try again.