Documentation for unique_together is confusing
At https://docs.djangoproject.com/en/1.4/ref/models/options/#unique-together, it says:
Sets of field names that, taken together, must be unique:
unique_together = (("driver", "restaurant"),)
This is a list of lists of fields that must be unique when considered together.
The words "set", and "list" refer to specific python datastructures, and the example uses neither of those -- it uses tuples. This should be cleaned up. I suspect the proper wording is "a iterable of iterables".
Change History (6)
changed from nobody to Raúl Cumplido