          return self.form()
  
  
  class ModelResource(FormResource):
      """
      Resource 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  
 </s> add     # Auto-register new ModelResource classes into _model_to_resource 
    #__metaclass__ = _RegisterModelResource
 </s> remove     def get_bound_form(self, content=None):
 </s> add     def get_bound_form(self, data=None, files=None): </s> remove class ExampleResource(Resource):
    """A basic read-only resource that points to 3 other resources."""
 </s> add class MyFormValidation(FormResource):
    """
    A resource which applies form validation on the input.
    """
    form = MyForm

    
class ExampleResource(BaseView):
    """
    A basic read-only resource that points to 3 other resources.
    """ </s> remove class PygmentsRoot(Resource):
    """This example demonstrates a simple RESTful Web API aound the awesome pygments library.
    This top level resource is used to create highlighted code snippets, and to list all the existing code snippets."""
 </s> add class PygmentsFormResource(FormResource):
    """
    """
#class _RegisterModelResource(type):
#    """
#    Auto register new ModelResource classes into ``_model_to_resource``
#    """
#    def __new__(cls, name, bases, dct):
#        resource_cls = type.__new__(cls, name, bases, dct)
#        model_cls = dct.get('model', None)
#        if model_cls:
#            _model_to_resource[model_cls] = resource_cls
#        return resource_cls



          return self.form()
  
  
#class _RegisterModelResource(type):
#    """
#    Auto register new ModelResource classes into ``_model_to_resource``
#    """
#    def __new__(cls, name, bases, dct):
#        resource_cls = type.__new__(cls, name, bases, dct)
#        model_cls = dct.get('model', None)
#        if model_cls:
#            _model_to_resource[model_cls] = resource_cls
#        return resource_cls



  class ModelResource(FormResource):
      """
      Resource 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.
      """
keep keep add keep keep keep keep keep
 Fixing some of the last blocking issues 
djangorestframework/resources.py