def paginate_queryset(self, queryset, request, view=None):
        self.limit = self.get_limit(request)
        if self.limit is None:
            return None

        self.offset = self.get_offset(request)
        self.count = _get_count(queryset)
        self.request = request
        if self.limit > self.count and self.template is not None:
            self.display_page_controls = True
        return list(queryset[self.offset:self.offset + self.limit])
dataset/ETHPy150Open tomchristie/django-rest-framework/rest_framework/pagination.py/LimitOffsetPagination.paginate_queryset/swapped operands of `>`