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 6290218 commit 40788f1Copy full SHA for 40788f1
rest_framework/serializers.py
@@ -1601,7 +1601,7 @@ def get_unique_together_validators(self):
1601
if not set(source_map).issuperset(unique_together_and_condition_fields):
1602
continue
1603
1604
- for source in (*unique_together, *condition_fields):
+ for source in unique_together_and_condition_fields:
1605
assert len(source_map[source]) == 1, (
1606
"Unable to create `UniqueTogetherValidator` for "
1607
"`{model}.{field}` as `{serializer}` has multiple "
0 commit comments