This commit is contained in:
ddelange 2023-03-20 08:36:06 +01:00 committed by GitHub
parent 0f03592711
commit df5d07ac53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -634,7 +634,7 @@ class CursorPagination(BasePagination):
# If some records contain a null for the ordering field, don't lose them.
filter_query = Q(**kwargs) | Q(**{order_attr + '__isnull': True})
queryset = queryset.filter(filter_query)
# If we have an offset cursor then offset the entire page by that amount.