              return None
  
          if not content is None:
              if hasattr(content, 'FILES'):
                  return self.form(content, content.FILES)
              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.
 
</s> remove 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.)"""
 </s> add 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.""" </s> remove         if not content is None:
 </s> add         if content is not None: </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         if not self.form:
 </s> add         form_cls = getattr(self.view, 'form', None)

        if not form_cls: </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."""

                return form_cls(content, content.FILES)
            return form_cls(content)
        return form_cls()
              return None
  
          if not content is None:
              if hasattr(content, 'FILES'):
                return form_cls(content, content.FILES)
            return form_cls(content)
        return form_cls()
                return form_cls(content, content.FILES)
            return form_cls(content)
        return form_cls()
                return form_cls(content, content.FILES)
            return form_cls(content)
        return form_cls()
  
  
  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.
keep keep keep keep replace replace replace keep keep keep keep keep
 Lots of validator tests passing after refactor 
djangorestframework/validators.py