Skip to content

Commit

Permalink
Update rest_framework/validators.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 a4739c4 commit e924bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __call__(self, attrs, serializer):
raise ValidationError(message, code='unique')

def __repr__(self):
return '<%s(%s)>' % (
return '<{}({})>'.format(
self.__class__.__name__,
', '.join(
f'{attr}={smart_repr(getattr(self, attr))}'
Expand Down

0 comments on commit e924bee

Please sign in to comment.