summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2024-07-13 22:09:50 -0400
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-07-17 13:07:41 +0200
commitc30669821bcda112647af4ebf5b09d3607672909 (patch)
tree00245af5e3ed63de756d74813565e8a33439c24b /docs
parentc1028bdd0962cd2fdfdd966cd5c6243cb196d896 (diff)
[5.0.x] Refs #30581 -- Made unattached UniqueConstraint(fields) validation testable.
The logic allowing UniqueConstraint(fields).validate to preserve backward compatiblity with Model.unique_error_message failed to account for cases where the constraint might not be attached to a model which is a common pattern during testing. This changes allows for arbitrary UniqueConstraint(fields) to be tested in isolation without requiring actual models backing them up. Co-authored-by: Mark G <mark.gensler@protonmail.com> Backport of 13922580cccfb9ab2922ff4943dd39da56dfbd8c from main.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions