summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Graham <timograham@gmail.com>2011-12-31 00:43:11 +0000
committerTimo Graham <timograham@gmail.com>2011-12-31 00:43:11 +0000
commit060783d52ddf73f4b538526a917a19006258149e (patch)
tree8c40275bde3f989c14b1b84b529e8657e76f8e8b
parent9fe578c212b16752d478e7b1cb73325c3922f7ad (diff)
Fixed #702 - Documented that ManyToMany fields can't be in unique_together; thanks poirier for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/ref/models/options.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index 6bbfa30a53..1303fbcb84 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -247,6 +247,12 @@ Django quotes column and table names behind the scenes.
unique_together = ("driver", "restaurant")
+ A :class:`~django.db.models.ManyToManyField` cannot be included in
+ unique_together (it's not even clear what that would mean). If you
+ need to validate uniqueness related to a
+ :class:`~django.db.models.ManyToManyField`, look at signals or
+ using an explicit :attr:`through <ManyToManyField.through>` model.
+
``verbose_name``
----------------