Changes between Initial Version and Version 1 of Ticket #34293, comment 5
- Timestamp:
- Jan 25, 2023, 8:16:18 PM (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34293, comment 5
initial v1 1 1 I think I understand what's going on here. 2 2 3 The reporte ddefined constraints in a way makes assumption that `schedule_start_lt_end` will always be enforced before `schedule_exclude_overlapping` is which depends on the order of creation of constraints on the table and the order of the members of `Meta.constraints`.3 The reporter defined constraints in a way makes assumption that `schedule_start_lt_end` will always be enforced before `schedule_exclude_overlapping` is which depends on the order of creation of constraints on the table and the order of the members of `Meta.constraints`. 4 4 5 5 I think this might be an argument to make `Model.validate_constraint` abort on the first `ValidationError` it encounters. The alternative solution would be document that ''dependent'' constraints should use `conditions` so they can be skipped on invalid input.