Skip to content

Commit

Permalink
django 5.1 support added
Browse files Browse the repository at this point in the history
  • Loading branch information
MehrazRumman committed Dec 17, 2024
1 parent 7c7d186 commit be080ff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
)

Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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 =
Expand Down

0 comments on commit be080ff

Please sign in to comment.