Skip to content

Commit

Permalink
feat: add django42 support
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Sep 28, 2023
1 parent b0d3ed3 commit 04ce601
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [django32, django40, quality, docs, pii_check]
toxenv: [django32, django42, quality, docs, pii_check]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 1 addition & 3 deletions commerce_coordinator/apps/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from commerce_coordinator.apps.core.models import User


@admin.register(User)
class CustomUserAdmin(UserAdmin):
""" Admin configuration for the custom User model. """
list_display = ('username', 'email', 'full_name', 'first_name', 'last_name', 'is_staff')
Expand All @@ -17,6 +18,3 @@ class CustomUserAdmin(UserAdmin):
'groups', 'user_permissions')}),
(_('Important dates'), {'fields': ('last_login', 'date_joined')}),
)


admin.site.register(User, CustomUserAdmin)
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38-django{32,40}, quality, docs, pii_check
envlist = py38-django{32,42}, quality, docs, pii_check
skipsdist = true

[doc8]
Expand Down Expand Up @@ -38,7 +38,7 @@ norecursedirs = .* docs requirements site-packages
[testenv]
deps =
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
commands =
pytest {posargs}
Expand Down

0 comments on commit 04ce601

Please sign in to comment.