              smart_repr(self.queryset)
          ))
  
  
  class UniqueTogetherValidator(object):
      """
      Validator that corresponds to `unique_together = (...)` on a model class.
  
      Should be applied to the serializer class, not to an individual field.
      """
 
</s> remove         ))
 </s> add         ) </s> remove class UniqueValidator(object):
 </s> add class UniqueValidator: </s> remove @python_2_unicode_compatible
class PKOnlyObject(object):
 </s> add class PKOnlyObject: </s> remove         super(DictField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         class Point(object):
 </s> add         class Point:
class UniqueTogetherValidator:
              smart_repr(self.queryset)
          ))
  
  
class UniqueTogetherValidator:
      """
      Validator that corresponds to `unique_together = (...)` on a model class.
  
      Should be applied to the serializer class, not to an individual field.
      """
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