      def paginate_queryset(self, queryset, page_size, paginator_class=Paginator):
          """
          Paginate a queryset.
          """
          paginator = paginator_class(queryset, page_size, allow_empty_first_page=self.allow_empty)
          page_kwarg = self.page_kwarg
          page = self.kwargs.get(page_kwarg) or self.request.GET.get(page_kwarg) or 1
          try:
              page_number = int(page)
          except ValueError:
 
</s> remove     pk_url_kwarg = 'pk'  # Not provided in Django 1.3
    slug_url_kwarg = 'slug'  # Not provided in Django 1.3
 </s> add     pk_url_kwarg = 'pk'
    slug_url_kwarg = 'slug' </s> remove     allow_empty = True
 </s> add  </s> remove     # Pending deprecation
 </s> add 
        paginator = paginator_class(queryset, page_size,
                                    allow_empty_first_page=self.allow_empty)
      def paginate_queryset(self, queryset, page_size, paginator_class=Paginator):
          """
          Paginate a queryset.
          """
        paginator = paginator_class(queryset, page_size,
                                    allow_empty_first_page=self.allow_empty)
          page_kwarg = self.page_kwarg
          page = self.kwargs.get(page_kwarg) or self.request.GET.get(page_kwarg) or 1
          try:
              page_number = int(page)
          except ValueError:
keep keep keep keep replace keep keep keep keep keep
 Cleaning up around bits of API that will be pending deprecation 
rest_framework/generics.py