          if bound_form is None:
              return data
          
          self.view.bound_form_instance = bound_form
  
          seen_fields_set = set(data.keys())
          form_fields_set = set(bound_form.fields.keys())
          allowed_extra_fields_set = set(allowed_extra_fields)
  
 
</s> remove             if content and isinstance(content, models.Model):
 </s> add             if data and isinstance(data, models.Model): </s> remove             elif content is not None:
                return OnTheFlyModelForm(content)
 </s> add             elif data is not None:
                return OnTheFlyModelForm(data, files)
        
        data = data and data or {}
        files = files and files or {}
          if bound_form is None:
              return data
          
          self.view.bound_form_instance = bound_form
        
        data = data and data or {}
        files = files and files or {}
  
          seen_fields_set = set(data.keys())
          form_fields_set = set(bound_form.fields.keys())
          allowed_extra_fields_set = set(allowed_extra_fields)
  
keep keep keep add keep keep keep keep keep
 Fixing some of the last blocking issues 
djangorestframework/resources.py