      def delete(self, request, *args, **kwargs):
          model = self.resource.model
  
          try:
              instance = model.objects.get(self.build_query(*args, **kwargs))
          except model.DoesNotExist:
              raise ErrorResponse(status.HTTP_404_NOT_FOUND, None, {})
  
          instance.delete()
          return
 
</s> remove             self.model_instance = model.objects.get(self.build_query(*args, **kwargs))
 </s> add             self.model_instance = self.get_object(*args, **kwargs) </s> remove             self.model_instance = model.objects.get(self.build_query(*args, **kwargs))
 </s> add             self.model_instance = self.get_object(*args, **kwargs) </s> remove from djangorestframework.response import Response
 </s> add from djangorestframework.response import Response, ErrorResponse </s> remove from djangorestframework.mixins import CreateModelMixin, PaginatorMixin
 </s> add from djangorestframework.mixins import CreateModelMixin, PaginatorMixin, ReadModelMixin
            instance = self.get_object(*args, **kwargs)
      def delete(self, request, *args, **kwargs):
          model = self.resource.model
  
          try:
            instance = self.get_object(*args, **kwargs)
          except model.DoesNotExist:
              raise ErrorResponse(status.HTTP_404_NOT_FOUND, None, {})
  
          instance.delete()
          return
keep keep keep keep replace keep keep keep keep keep
 Add a get_object method to the ModelMixin, and tests 
djangorestframework/mixins.py