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 ` model. + ``verbose_name`` ----------------