mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
![]() 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
|
||
---|---|---|
.. | ||
__init__.py | ||
models.py | ||
tests.py |