Fix
This commit is contained in:
parent
22e1478a1f
commit
0fe3e3f8ba
|
|
@ -3,8 +3,8 @@ from base64 import b64encode
|
|||
from urllib import parse as urlparse
|
||||
|
||||
from django.conf import settings
|
||||
from rest_framework.pagination import CursorPagination
|
||||
from django_elasticsearch_dsl_drf.pagination import PageNumberPagination
|
||||
from rest_framework.pagination import CursorPagination, PageNumberPagination
|
||||
from django_elasticsearch_dsl_drf.pagination import PageNumberPagination as ESPagination
|
||||
|
||||
|
||||
class ProjectPageNumberPagination(PageNumberPagination):
|
||||
|
|
@ -49,7 +49,7 @@ class ProjectMobilePagination(ProjectPageNumberPagination):
|
|||
return self.page.previous_page_number()
|
||||
|
||||
|
||||
class ESDocumentPagination(PageNumberPagination):
|
||||
class ESDocumentPagination(ESPagination):
|
||||
"""Pagination class for ES results. (includes facets)"""
|
||||
page_size_query_param = 'page_size'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user