Skip to content

Commit e924bee

Browse files
auvipypauloxnet
andauthored
Update rest_framework/validators.py
Co-authored-by: Paolo Melchiorre <[email protected]>
1 parent a4739c4 commit e924bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def __call__(self, attrs, serializer):
193193
raise ValidationError(message, code='unique')
194194

195195
def __repr__(self):
196-
return '<%s(%s)>' % (
196+
return '<{}({})>'.format(
197197
self.__class__.__name__,
198198
', '.join(
199199
f'{attr}={smart_repr(getattr(self, attr))}'

0 commit comments

Comments
 (0)