Skip to content

Commit

Permalink
Update rest_framework/serializers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Paolo Melchiorre <[email protected]>
  • Loading branch information
auvipy and pauloxnet authored Dec 28, 2024
1 parent 40788f1 commit 7bd7e30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rest_framework/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,10 @@ def get_unique_together_validators(self):
field_names = tuple(source_map[f][0] for f in unique_together)
condition_fields = tuple(source_map[f][0] for f in condition_fields)
validator = UniqueTogetherValidator(
queryset=queryset, fields=field_names, condition_fields=condition_fields, condition=condition
queryset=queryset,
fields=field_names,
condition_fields=tuple(source_map[f][0] for f in condition_fields),
condition=condition,
)
validators.append(validator)
return validators
Expand Down

0 comments on commit 7bd7e30

Please sign in to comment.