diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5567e8..64b87e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: max-parallel: 4 matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - django-version: ["2.2","3.2", "4.2"] + django-version: ["2.2","3.2", "4.2", "5.1"] steps: - uses: actions/checkout@v3 diff --git a/setup.py b/setup.py index 958e391..9f90dfe 100644 --- a/setup.py +++ b/setup.py @@ -74,6 +74,7 @@ def get_package_data(package): 'Framework :: Django', 'Framework :: Django :: 3.2', 'Framework :: Django :: 4.2', + 'Framework :: Django :: 5.1', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.9', diff --git a/tests_app/tests/functional/routers/nested_router_mixin/urls_parent_viewset_lookup.py b/tests_app/tests/functional/routers/nested_router_mixin/urls_parent_viewset_lookup.py index de498bd..1953776 100644 --- a/tests_app/tests/functional/routers/nested_router_mixin/urls_parent_viewset_lookup.py +++ b/tests_app/tests/functional/routers/nested_router_mixin/urls_parent_viewset_lookup.py @@ -11,7 +11,7 @@ # main routes ( - router.register(r'users', UserViewSetWithEmailLookup) + router.register(r'users', UserViewSetWithEmailLookup, basename='users-by-uuid') .register(r'groups', GroupViewSet, 'users-group', parents_query_lookups=['user_groups__email']) ) diff --git a/tox.ini b/tox.ini index 01fdf56..9b505c2 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,7 @@ envlist = py{38,39}-django{22}-drf{311,312} py{38,39,310,311,312}-django{32}-drf{312,313,314} py{38,39,310,311,312}-django{42}-drf{314} + py{310,311,312}-django{51}-drf{314} [testenv] @@ -19,6 +20,7 @@ deps= django22: Django>=2.2,<3.0 django32: Django>=3.2,<4.0 django42: Django>=4.2,<5.0 + django51: Django>=5.1,<6.0 setenv =