Commit 580389c5 authored by Timo Graham's avatar Timo Graham
Browse files

[1.3.X] Fixed #702 - Documented that ManyToMany fields can't be in...

[1.3.X] Fixed #702 - Documented that ManyToMany fields can't be in unique_together; thanks poirier for the patch.

Backport of r17314 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@17315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 7b9016e5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -238,6 +238,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``
----------------