      def get(self, request, *args, **kwargs):
          model = self.resource.model
  
          try:
              self.model_instance = self.get_object(*args, **kwargs)
          except model.DoesNotExist:
              raise ErrorResponse(status.HTTP_404_NOT_FOUND)
  
          return self.model_instance
  
 
</s> remove             instance = self.get_object(*args, **kwargs)
 </s> add             instance = self.get_instance(**query_kwargs) </s> remove             self.model_instance = self.get_object(*args, **kwargs)
 </s> add             self.model_instance = self.get_instance(*query_kwargs)
            self.model_instance = self.get_instance(**query_kwargs)
      def get(self, request, *args, **kwargs):
          model = self.resource.model
  
          try:
            self.model_instance = self.get_instance(**query_kwargs)
          except model.DoesNotExist:
              raise ErrorResponse(status.HTTP_404_NOT_FOUND)
  
          return self.model_instance
  
keep keep keep keep replace keep keep keep keep keep
 Remove use of Q objects. 
djangorestframework/mixins.py