              smart_repr(self.fields)
          ))
  
  
  class BaseUniqueForValidator(object):
      message = None
      missing_message = _('This field is required.')
  
      def __init__(self, queryset, field, date_field, message=None):
          self.queryset = queryset
 
</s> remove         ))
 </s> add         ) </s> remove         ))
 </s> add         ) </s> remove         return super(RelatedField, self).run_validation(data)
 </s> add         return super().run_validation(data) </s> remove         return unicode_to_repr('<%s(queryset=%s, fields=%s)>' % (
 </s> add         return '<%s(queryset=%s, fields=%s)>' % ( </s> remove class Field(object):
 </s> add class Field:
class BaseUniqueForValidator:
              smart_repr(self.fields)
          ))
  
  
class BaseUniqueForValidator:
      message = None
      missing_message = _('This field is required.')
  
      def __init__(self, queryset, field, date_field, message=None):
          self.queryset = queryset
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/validators.py