  
  
      def _validate(self, data, files, allowed_extra_fields=(), fake_data=None):
          """
          Wrapped by validate to hide the extra_fields option that the ModelValidatorMixin uses.
          extra_fields is a list of fields which are not defined by the form, but which we still
          expect to see on the input.
          """
          
          # We'd like nice error messages even if no content is supplied.
          # Typically if an empty dict is given to a form Django will
 
</s> remove             return super(ModelFormValidator, self).get_bound_form(data, files)
 </s> add             return super(ModelResource, self).get_bound_form(data, files) </s> remove         """If the view's form attribute is None then FormValidator(view).validate(content)
 </s> add         """If the view's form attribute is None then FormValidator(view).validate_request(content, None) </s> remove class TestValidatorMixinInterfaces(TestCase):
    """Basic tests to ensure that the ValidatorMixin classes expose the expected interfaces"""

    def test_validator_mixin_interface(self):
        """Ensure the ValidatorMixin base class interface is as expected."""
        self.assertRaises(NotImplementedError, BaseValidator(None).validate, None)

 </s> add  </s> remove         self.assertEqual(self.validator.validate(content), content)
 </s> add         self.assertEqual(self.validator.validate_request(content, None), content)
        Wrapped by validate to hide the extra flags that are used in the implementation.

        allowed_extra_fields is a list of fields which are not defined by the form, but which we still
  
  
      def _validate(self, data, files, allowed_extra_fields=(), fake_data=None):
          """
        Wrapped by validate to hide the extra flags that are used in the implementation.

        allowed_extra_fields is a list of fields which are not defined by the form, but which we still
        Wrapped by validate to hide the extra flags that are used in the implementation.

        allowed_extra_fields is a list of fields which are not defined by the form, but which we still
          expect to see on the input.
          """
          
          # We'd like nice error messages even if no content is supplied.
          # Typically if an empty dict is given to a form Django will
keep keep keep keep replace replace keep keep keep keep keep
 validators tests -> resources tests 
djangorestframework/resources.py