      Behavior to delete a `model` instance on DELETE requests
      """
      def delete(self, request, *args, **kwargs):
          model = self.resource.model
  
          try:
              instance = self.get_instance(**query_kwargs)
          except model.DoesNotExist:
              raise ErrorResponse(status.HTTP_404_NOT_FOUND, None, {})
 
</s> remove             instance = self.get_object(*args, **kwargs)
 </s> add             instance = self.get_instance(**query_kwargs) </s> remove     def build_query(self, *args, **kwargs):
        # Build query is overriden to filter the kwargs priori
        # to use them as build_query argument
        filtered_keywords = kwargs.copy()

        return super(ReadModelMixin, self).build_query(*args, **filtered_keywords)

 </s> add  </s> remove             self.model_instance = self.get_object(*args, **kwargs)
 </s> add             self.model_instance = self.get_instance(**query_kwargs)
        query_kwargs = self.get_query_kwargs(request, *args, **kwargs)
      Behavior to delete a `model` instance on DELETE requests
      """
      def delete(self, request, *args, **kwargs):
          model = self.resource.model
        query_kwargs = self.get_query_kwargs(request, *args, **kwargs)
  
          try:
              instance = self.get_instance(**query_kwargs)
          except model.DoesNotExist:
              raise ErrorResponse(status.HTTP_404_NOT_FOUND, None, {})
keep keep keep add keep keep keep keep keep
 Remove use of Q objects. 
djangorestframework/mixins.py