diff options
Diffstat (limited to 'docs/model-api.txt')
| -rw-r--r-- | docs/model-api.txt | 7 |
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`` ---------------- |
