diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1a53f7d..e639155 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - python-version: [3.8, 3.9, "3.10"] + python-version: [3.8, 3.9, "3.10", "3.11"] django-version: [4.0, 3.2] services: diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d0a3ff..27fbb56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.1] - 2022-12-07 + +### Added +- Added support for NULL value ordering by @untidy-hair https://github.com/photocrowd/django-cursor-pagination/pull/45 + - Fixes https://github.com/photocrowd/django-cursor-pagination/issues/44 + - Fixes https://github.com/photocrowd/django-cursor-pagination/issues/18 +- Added Python 3.11 to test matrix + ## [0.2.0] - 2022-07-07 ### Added diff --git a/setup.py b/setup.py index cb7772e..f97ed3c 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='django-cursor-pagination', py_modules=['cursor_pagination'], - version='0.2.0', + version='0.2.1', description='Cursor based pagination for Django', long_description=long_description, long_description_content_type="text/markdown", diff --git a/tests/tests.py b/tests/tests.py index a912c61..238dbd5 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -5,7 +5,7 @@ from django.test import TestCase from django.utils import timezone -from cursor_pagination import CursorPaginator, InvalidCursor +from cursor_pagination import CursorPaginator from .models import Author, Post @@ -190,7 +190,8 @@ def test_with_items(self): class TestForwardNullPagination(TestCase): - # When there are NULL values, there needs to be another key to make the sort unique as README Caveats say + # When there are NULL values, there needs to be another key to make the sort + # unique as README Caveats say @classmethod def setUpTestData(cls): now = timezone.now() @@ -203,7 +204,6 @@ def setUpTestData(cls): cls.items.append(author) cls.paginator = CursorPaginator(Author.objects.all(), ('-age', '-created',)) # [1, 0, 2, 3, 4, 5, 6] - def test_first_page(self): page = self.paginator.page(first=3)