Cursor-based pagination for Django models, providing efficient and stable pagination for large datasets. Current version: 0.3.0. Released sporadically, last update in 2024.
pip install django-cursor-paginationVerified import paths — ran on the pinned version, not inferred.
Create a custom pagination class and use it in a Django REST Framework view. Cursor pagination provides stable, efficient pagination for large datasets.
Use a field like '-created' or 'id' that is unique in practice. Avoid fields with many duplicates.
Use cursor-based links from response instead of manual page numbers.
Test with async views if applicable. The change is backward-compatible for sync usage.
No dependency data recorded yet.