      def get(self, request, *args, **kwargs):
          queryset = self.get_queryset()
          ordering = self.get_ordering()
  
          queryset = queryset.filter(self.build_query(**kwargs))
          if ordering:
              queryset = queryset.order_by(*ordering)
  
          return queryset
  
 
</s> remove         model = self.resource.model
        return model.objects.get(self.build_query(*args, **kwargs))
 </s> add         return self.get_queryset().get(**kwargs) </s> remove             self.model_instance = self.get_object(*args, **kwargs)
 </s> add             self.model_instance = self.get_instance(**query_kwargs) </s> remove             instance = self.get_object(*args, **kwargs)
 </s> add             instance = self.get_instance(**query_kwargs)
        queryset = queryset.filter(**query_kwargs)
      def get(self, request, *args, **kwargs):
          queryset = self.get_queryset()
          ordering = self.get_ordering()
  
        queryset = queryset.filter(**query_kwargs)
          if ordering:
              queryset = queryset.order_by(*ordering)
  
          return queryset
  
keep keep keep keep replace keep keep keep keep keep
 Remove use of Q objects. 
djangorestframework/mixins.py