          otherwise if model is set use that class to create a ModelForm, otherwise return None."""
  
          if self.form:
              # Use explict Form
              return super(ModelFormValidatorMixin, self).get_bound_form(content)
  
          elif self.model:
              # Fall back to ModelForm which we create on the fly
              class OnTheFlyModelForm(forms.ModelForm):
                  class Meta:
 
</s> remove         if self.form:
 </s> add         form_cls = getattr(self.view, 'form', None)
        model_cls = getattr(self.view, 'model', None)

        if form_cls: </s> remove         elif self.model:
 </s> add         elif model_cls: </s> remove                     model = self.model
 </s> add                     model = model_cls </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 isinstance(resource, FormValidatorMixin):
            # If we already have a bound form instance (IE provided by the input parser, then use that)
            if resource.bound_form_instance is not None:
                form_instance = resource.bound_form_instance
                
 </s> add         if not form_instance and hasattr(resource, 'get_bound_form'):
            return super(ModelFormValidator, self).get_bound_form(content)
          otherwise if model is set use that class to create a ModelForm, otherwise return None."""
  
          if self.form:
              # Use explict Form
            return super(ModelFormValidator, self).get_bound_form(content)
  
          elif self.model:
              # Fall back to ModelForm which we create on the fly
              class OnTheFlyModelForm(forms.ModelForm):
                  class Meta:
keep keep keep keep replace keep keep keep keep keep
 Lots of validator tests passing after refactor 
djangorestframework/validators.py