Skip to content

Commit 40788f1

Browse files
auvipypauloxnet
andauthored
Update rest_framework/serializers.py
Co-authored-by: Paolo Melchiorre <[email protected]>
1 parent 6290218 commit 40788f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ def get_unique_together_validators(self):
16011601
if not set(source_map).issuperset(unique_together_and_condition_fields):
16021602
continue
16031603

1604-
for source in (*unique_together, *condition_fields):
1604+
for source in unique_together_and_condition_fields:
16051605
assert len(source_map[source]) == 1, (
16061606
"Unable to create `UniqueTogetherValidator` for "
16071607
"`{model}.{field}` as `{serializer}` has multiple "

0 commit comments

Comments
 (0)