We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4621fd5 commit 24e69afCopy full SHA for 24e69af
rest_framework/serializers.py
@@ -1638,7 +1638,7 @@ def get_unique_together_validators(self):
1638
1639
field_names = tuple(source_map[f][0] for f in unique_together)
1640
1641
- constraint = unique_constraint_by_fields.get(tuple(unique_together), None)
+ constraint = unique_constraint_by_fields.get(tuple(unique_together))
1642
violation_error_message = self._get_constraint_violation_error_message(constraint) if constraint else None
1643
1644
validator = UniqueTogetherValidator(
0 commit comments