              self.__class__.__name__,
              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.
 
</s>
    def __eq__(self, other):
        if not isinstance(other, self.__class__):
            return NotImplemented
        return (self.message == other.message
                and self.requires_context == other.requires_context
                and self.queryset == other.queryset
                and self.lookup == other.lookup
                )

              self.__class__.__name__,
              smart_repr(self.queryset)
          )
  
    def __eq__(self, other):
        if not isinstance(other, self.__class__):
            return NotImplemented
        return (self.message == other.message
                and self.requires_context == other.requires_context
                and self.queryset == other.queryset
                and self.lookup == other.lookup
                )

  
  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 add keep keep keep keep keep keep
 Implement `__eq__` for validators (#8925)

* Implement equality operator and add test coverage

* Add documentation on implementation
rest_framework/validators.py