diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py index 87926b381..5106008f4 100644 --- a/rest_framework/pagination.py +++ b/rest_framework/pagination.py @@ -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.