Update rest_framework/pagination.py

This commit is contained in:
Asif Saif Uddin 2023-06-12 12:43:08 +06:00 committed by GitHub
parent 2f08da5be3
commit 7675c724f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -937,7 +937,7 @@ class CursorPagination(BasePagination):
def get_schema_fields(self, view): def get_schema_fields(self, view):
assert coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`' assert coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`'
if coreapi is not None: if coreapi is not None:
warnings.warn('CoreAPI compatibility is deprecated and will be removed in DRF 3.15', RemovedInDRF315Warning) warnings.warn('CoreAPI compatibility is deprecated and will be removed in DRF 3.17', RemovedInDRF317Warning)
assert coreschema is not None, 'coreschema must be installed to use `get_schema_fields()`' assert coreschema is not None, 'coreschema must be installed to use `get_schema_fields()`'
fields = [ fields = [
coreapi.Field( coreapi.Field(