Documentation for unique_together is confusing
|Reported by:||RoySmith||Owned by:||raulcd|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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)
comment:1 Changed 4 years ago by jezdez
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:5 Changed 4 years ago by Tim Graham <timograham@…>
- Resolution set to fixed
- Status changed from new to closed