  from django.db import models
  from djangorestframework.response import ResponseException
  from djangorestframework.utils import as_tuple
  
  class ValidatorMixin(object):
      """Base class for all ValidatorMixin classes, which simply defines the interface they provide."""
  
      def validate(self, content):
          """Given some content as input return some cleaned, validated content.
          Raises a ResponseException with status code 400 (Bad Request) on failure.
          
 
</s> remove         Raises a ResponseException with status code 400 (Bad Request) on failure.
        
 </s> add         Typically raises a ResponseException with status code 400 (Bad Request) on failure.
 </s> remove     """The form class that should be used for validation, or None to turn off form validation."""
    form = None
    bound_form_instance = None
 </s> add     The view class should provide `.form` attribute which specifies the form classmethod
    to be used for validation.
    
    On calling validate() this validator may set a `.bound_form_instance` attribute on the
    view, which may be used by some renderers."""
 </s> remove from djangorestframework.validators import ValidatorMixin, FormValidatorMixin, ModelFormValidatorMixin
 </s> add from djangorestframework.validators import BaseValidator, FormValidator, ModelFormValidator </s> remove from djangorestframework.validators import FormValidatorMixin
 </s> add  </s> remove from djangorestframework.validators import ModelFormValidatorMixin
from djangorestframework import status
 </s> add from djangorestframework import status, validators
class BaseValidator(object):
    """Base class for all Validator classes, which simply defines the interface they provide."""

    def __init__(self, view):
        self.view = view
  from django.db import models
  from djangorestframework.response import ResponseException
  from djangorestframework.utils import as_tuple
  
class BaseValidator(object):
    """Base class for all Validator classes, which simply defines the interface they provide."""

    def __init__(self, view):
        self.view = view
class BaseValidator(object):
    """Base class for all Validator classes, which simply defines the interface they provide."""

    def __init__(self, view):
        self.view = view
  
      def validate(self, content):
          """Given some content as input return some cleaned, validated content.
          Raises a ResponseException with status code 400 (Bad Request) on failure.
          
keep keep keep keep replace replace keep keep keep keep keep
 Lots of validator tests passing after refactor 
djangorestframework/validators.py