Replies: 1 comment
-
While working around this issue I might have found another (possibly related) issue. The validator uses UniqueTogetherValidator.fields, but bypasses the See the code below for an example.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checklist
If you have a database unique constraint that includes a nullable field, DRF will still raise an 'field_A and field_B must make a unique set' validationerror when you try to post a new nullable field. Whereas on database level every NULL is considered unique.
Could be fixed maybe here in the code:
django-rest-framework/rest_framework/validators.py
Line 123 in 63063da
Beta Was this translation helpful? Give feedback.
All reactions