              # Instantiate the ModelForm as appropriate
              if content and isinstance(content, models.Model):
                  # Bound to an existing model instance
                  return OnTheFlyModelForm(instance=content)
              elif content is not None:
                  return OnTheFlyModelForm(content)
              return OnTheFlyModelForm()
  
          # Both form and model not set?  Okay bruv, whatevs...
          return None
      
 
</s> remove             if content and isinstance(content, models.Model):
 </s> add             if data and isinstance(data, models.Model):
            elif data is not None:
                return OnTheFlyModelForm(data, files)
              # Instantiate the ModelForm as appropriate
              if content and isinstance(content, models.Model):
                  # Bound to an existing model instance
                  return OnTheFlyModelForm(instance=content)
            elif data is not None:
                return OnTheFlyModelForm(data, files)
            elif data is not None:
                return OnTheFlyModelForm(data, files)
              return OnTheFlyModelForm()
  
          # Both form and model not set?  Okay bruv, whatevs...
          return None
      
keep keep keep keep replace replace keep keep keep keep keep
 Fixing some of the last blocking issues 
djangorestframework/resources.py