                  setattr(self.model_instance, key, val)
          except model.DoesNotExist:
              self.model_instance = model(**self.get_instance_data(model, self.CONTENT, *args, **kwargs))
          self.model_instance.save()
          return self.model_instance
  
  
  class DeleteModelMixin(ModelMixin):
      """
      Behavior to delete a `model` instance on DELETE requests
 
</s> remove         return
 </s> add         return Response() </s> remove             raise ErrorResponse(status.HTTP_404_NOT_FOUND)
 </s> add             raise ErrorResponse(status=status.HTTP_404_NOT_FOUND) </s> remove             headers['Location'] = self.resource(self).url(instance)
        return Response(status.HTTP_201_CREATED, instance, headers)
 </s> add             response['Location'] = self.resource(self).url(instance)
        return response </s> remove             raise ErrorResponse(status.HTTP_404_NOT_FOUND, None, {})
 </s> add             raise ErrorResponse(status=status.HTTP_404_NOT_FOUND) </s> remove         self.headers = {}
 </s> add 
        return Response(self.model_instance)
                  setattr(self.model_instance, key, val)
          except model.DoesNotExist:
              self.model_instance = model(**self.get_instance_data(model, self.CONTENT, *args, **kwargs))
          self.model_instance.save()
        return Response(self.model_instance)
  
  
  class DeleteModelMixin(ModelMixin):
      """
      Behavior to delete a `model` instance on DELETE requests
keep keep keep keep replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/mixins.py