              return self.form(content)
          return self.form()
  
  
  class ModelFormValidatorMixin(FormValidatorMixin):
      """Validator Mixin that uses forms for validation and falls back to a model form if no form is set.
      Extends the ValidatorMixin interface to also provide a get_bound_form() method.
      (Which may be used by some emitters.)"""
   
      """The form class that should be used for validation, or None to use model form validation."""   
      form = None
      
      """The model class from which the model form should be constructed if no form is set."""
 
</s> remove class FormValidatorMixin(ValidatorMixin):
    """Validator Mixin that uses forms for validation.
    Extends the ValidatorMixin interface to also provide a get_bound_form() method.
    (Which may be used by some emitters.)"""
 </s> add class FormValidator(BaseValidator):
    """Validator class that uses forms for validation.
    Also provides a get_bound_form() method which may be used by some renderers. </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                 return self.form(content, content.FILES)
            return self.form(content)
        return self.form()
 </s> add                 return form_cls(content, content.FILES)
            return form_cls(content)
        return form_cls() </s> remove 
        content = {'qwerty':'uiop'}     
        self.assertEqual(DisabledModelFormValidator().get_bound_form(content), None)

 </s> add             model = None
 
        view = DisabledModelFormView()
        content = {'qwerty':'uiop'}       
        self.assertEqual(ModelFormValidator(view).get_bound_form(content), None)#  </s> remove         if self.form:
 </s> add         form_cls = getattr(self.view, 'form', None)
        model_cls = getattr(self.view, 'model', None)

        if form_cls:
class ModelFormValidator(FormValidator):
    """Validator class that uses forms for validation and otherwise falls back to a model form if no form is set.
    Also provides a get_bound_form() method which may be used by some renderers."""
              return self.form(content)
          return self.form()
  
  
class ModelFormValidator(FormValidator):
    """Validator class that uses forms for validation and otherwise falls back to a model form if no form is set.
    Also provides a get_bound_form() method which may be used by some renderers."""
class ModelFormValidator(FormValidator):
    """Validator class that uses forms for validation and otherwise falls back to a model form if no form is set.
    Also provides a get_bound_form() method which may be used by some renderers."""
class ModelFormValidator(FormValidator):
    """Validator class that uses forms for validation and otherwise falls back to a model form if no form is set.
    Also provides a get_bound_form() method which may be used by some renderers."""
class ModelFormValidator(FormValidator):
    """Validator class that uses forms for validation and otherwise falls back to a model form if no form is set.
    Also provides a get_bound_form() method which may be used by some renderers."""
   
      """The form class that should be used for validation, or None to use model form validation."""   
      form = None
      
      """The model class from which the model form should be constructed if no form is set."""
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Lots of validator tests passing after refactor 
djangorestframework/validators.py