  from rest_framework.exceptions import ValidationError
  from rest_framework.utils.representation import smart_repr
  
  
  class UniqueValidator:
      """
      Validator that corresponds to `unique=True` on a model field.
  
      Should be applied to an individual field on the serializer.
      """
 
</s> remove class UniqueTogetherValidator:
 </s> add class UniqueTogetherValidator(object): </s> remove class BaseUniqueForValidator:
 </s> add class BaseUniqueForValidator(object):
class UniqueValidator(object):
  from rest_framework.exceptions import ValidationError
  from rest_framework.utils.representation import smart_repr
  
  
class UniqueValidator(object):
      """
      Validator that corresponds to `unique=True` on a model field.
  
      Should be applied to an individual field on the serializer.
      """
keep keep keep keep replace keep keep keep keep keep
 Ensure validators are new-style classes on python2 
rest_framework/validators.py