          queryset = self.get_queryset()
          ordering = self.get_ordering()
  
          queryset = queryset.filter(**query_kwargs)
          if ordering:
              queryset = queryset.order_by(*ordering)
  
          return queryset
 
</s> remove         queryset = queryset.filter(self.build_query(**kwargs))
 </s> add         queryset = queryset.filter(**query_kwargs) </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     def build_query(self, *args, **kwargs):
        """ Returns django.db.models.Q object to be used for the objects retrival.

        Arguments:
        - args: unnamed URL arguments
        - kwargs: named URL arguments

        If a URL passes any arguments to the view being the QueryMixin subclass
        build_query manages the arguments and provides the Q object that will be
        used for the objects retrival with filter/get queryset methods.

        Technically, neither args nor kwargs have to be provided, however the default
        behaviour is to map all kwargs as the query constructors so that if this
        method is not overriden only kwargs keys being model fields are valid.

        If positional args are provided, the last one argument is understood
        as the primary key.  However this usage should be considered
        deperecated, and will be removed in a future version.
 </s> add     def get_query_kwargs(self, *args, **kwargs):
        """
        Return a dict of kwargs that will be used to build the
        model instance retrieval or to filter querysets. </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)
        query_kwargs = self.get_query_kwargs(request, *args, **kwargs)
          queryset = self.get_queryset()
          ordering = self.get_ordering()
        query_kwargs = self.get_query_kwargs(request, *args, **kwargs)
  
          queryset = queryset.filter(**query_kwargs)
          if ordering:
              queryset = queryset.order_by(*ordering)
  
          return queryset
keep add keep keep keep keep keep keep
 Remove use of Q objects. 
djangorestframework/mixins.py