Skip to content

Commit

Permalink
feat: add support for Django 4.2 (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram authored Sep 27, 2023
1 parent 8de0e6b commit 4f08e8d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 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:
os: [ubuntu-20.04]
python-version: ["3.8"]
node-version: ["10"]
toxenv: [django32, django40, quality, pii_check, rst_validation]
toxenv: [django32, django42, quality, pii_check, rst_validation]

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 1 addition & 3 deletions edx_name_affirmation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
Django app housing name affirmation logic.
"""

__version__ = '2.3.6'

default_app_config = 'edx_name_affirmation.apps.EdxNameAffirmationConfig' # pylint: disable=invalid-name
__version__ = '2.3.7'
6 changes: 2 additions & 4 deletions edx_name_affirmation/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from edx_name_affirmation.models import VerifiedName, VerifiedNameConfig


@admin.register(VerifiedName)
class VerifiedNameAdmin(admin.ModelAdmin):
"""
Admin for the VerifiedName Model
Expand All @@ -20,6 +21,7 @@ class VerifiedNameAdmin(admin.ModelAdmin):
raw_id_fields = ('user', )


@admin.register(VerifiedNameConfig)
class VerifiedNameConfigAdmin(admin.ModelAdmin):
"""
Admin for the VerifiedNameConfig Model
Expand All @@ -30,7 +32,3 @@ class VerifiedNameConfigAdmin(admin.ModelAdmin):
readonly_fields = ('change_date',)
search_fields = ('user__username',)
raw_id_fields = ('user', )


admin.site.register(VerifiedName, VerifiedNameAdmin)
admin.site.register(VerifiedNameConfig, VerifiedNameConfigAdmin)
4 changes: 2 additions & 2 deletions edx_name_affirmation/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
URLs for edx_name_affirmation.
"""

from django.urls import include, path
from django.urls import include, path, re_path

from edx_name_affirmation import views

Expand All @@ -14,7 +14,7 @@
name='verified_name'
),

path(
re_path(
r'edx_name_affirmation/v1/verified_name/(?P<verified_name_id>\d+)$',
views.VerifiedNameView.as_view(), name='verified_name_by_id'
),
Expand Down
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}-celery{53}, quality, rst_validation, docs, pii_check
envlist = py38-django{32,42}-celery{53}, quality, rst_validation, docs, pii_check

[doc8]
ignore = D001
Expand Down Expand Up @@ -36,7 +36,7 @@ norecursedirs = .* docs requirements site-packages
[testenv]
deps =
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django42: Django>=4.2,<5.0
-r{toxinidir}/requirements/test.txt
celery44: -r{toxinidir}/requirements/celery44.txt
celery50: -r{toxinidir}/requirements/celery50.txt
Expand Down

0 comments on commit 4f08e8d

Please sign in to comment.