          queryset = queryset.filter(**query_kwargs)
          if ordering:
              queryset = queryset.order_by(*ordering)
  
          return queryset
  
  
  ########## Pagination Mixins ##########
  
  class PaginatorMixin(object):
 
</s> remove 
        content = json.loads(response.content)
 </s> add         content = response.raw_content </s> remove             return Response(status.HTTP_200_OK)
 </s> add             return Response(status=status.HTTP_200_OK) </s> remove             headers['Location'] = self.resource(self).url(instance)
        return Response(status.HTTP_201_CREATED, instance, headers)
 </s> add             response['Location'] = self.resource(self).url(instance)
        return response
        return Response(queryset)
          queryset = queryset.filter(**query_kwargs)
          if ordering:
              queryset = queryset.order_by(*ordering)
  
        return Response(queryset)
  
  
  ########## Pagination Mixins ##########
  
  class PaginatorMixin(object):
keep keep keep keep replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/mixins.py