  
          try:
              self.model_instance = self.get_instance(**query_kwargs)
          except model.DoesNotExist:
              raise ErrorResponse(status.HTTP_404_NOT_FOUND)
  
          return self.model_instance
  
  
  class CreateModelMixin(ModelMixin):
 
</s> remove         return self.model_instance
 </s> add         return Response(self.model_instance) </s> remove             raise ErrorResponse(status.HTTP_404_NOT_FOUND, None, {})
 </s> add             raise ErrorResponse(status=status.HTTP_404_NOT_FOUND) </s> remove         return
 </s> add         return Response() </s> remove             raise ErrorResponse(status.HTTP_400_BAD_REQUEST,
                                {'detail': 'multipart parse error - %s' % unicode(exc)})
 </s> add             raise ErrorResponse(
                content={'detail': 'multipart parse error - %s' % unicode(exc)},
                status=status.HTTP_400_BAD_REQUEST) </s> remove                 raise ErrorResponse(status.HTTP_400_BAD_REQUEST,
                                    {'detail': 'YAML parse error - %s' % unicode(exc)})
 </s> add                 raise ErrorResponse(
                    content={'detail': 'YAML parse error - %s' % unicode(exc)},
                    status=status.HTTP_400_BAD_REQUEST)
            raise ErrorResponse(status=status.HTTP_404_NOT_FOUND)
  
          try:
              self.model_instance = self.get_instance(**query_kwargs)
          except model.DoesNotExist:
            raise ErrorResponse(status=status.HTTP_404_NOT_FOUND)
  
          return self.model_instance
  
  
  class CreateModelMixin(ModelMixin):
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