PaginatorSet】的更多相关文章

from django.core.paginator import Paginator, EmptyPage class PaginatorSet: def __init__(self, limit=30): self._limit = limit def get(self, request, query_set): try: limit = int(request.GET.get('limit', self._limit)) offset = int(request.GET.get('offs…