  
          if data is not None:
              return form_cls(data, files)
  
          return form_cls()
  
  
  class ModelResource(FormResource):
      """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     """Validator class that uses forms for validation.
 </s> add     """
    Resource class that uses forms for validation. </s> remove     
    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> add  </s> remove         """Given some content return a Django form bound to that content.
        If form validation is turned off (form class attribute is None) then returns None."""
        form_cls = getattr(self, 'form', None)

        if not form_cls:
 </s> add         """
        Given some content return a Django form bound to that content.
        If form validation is turned off (form class attribute is None) then returns None.
        """
        if not self.form: </s> remove             return form_cls(data, files)
 </s> add             return self.form(data, files)
        return self.form()
  
          if data is not None:
              return form_cls(data, files)
  
        return self.form()
  
  
  class ModelResource(FormResource):
      """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."""
keep keep keep keep replace keep keep keep keep keep
 Sorting out resources.  Doing some crazy magic automatic url resolving stuff.  Yum. 
djangorestframework/resources.py