Skip to content

Commit

Permalink
Merge pull request #406 from jrief/feat/django-5-1
Browse files Browse the repository at this point in the history
feat: Django 5.1 support
  • Loading branch information
jrief authored Aug 15, 2024
2 parents 1a25961 + a5a4eeb commit 7c9b83e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Patch templates
run: |
mkdir -p adminsortable2/templates/adminsortable2/edit_inline
DJANGO_VERSIONS=("4.2" "5.0")
DJANGO_VERSIONS=("4.2" "5.0" "5.1")
for django_version in ${DJANGO_VERSIONS[@]}; do
echo $django_version
curl --silent --output adminsortable2/templates/adminsortable2/edit_inline/stacked-django-$django_version.html https://raw.githubusercontent.com/django/django/stable/$django_version.x/django/contrib/admin/templates/admin/edit_inline/stacked.html
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ jobs:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
node-version: ["18.x"]
django-version: ["4.2.*", "5.0.*"]
django-version: ["4.2.*", "5.0.*", "5.1.*"]
exclude: # https://docs.djangoproject.com/en/5.0/faq/install/#what-python-version-can-i-use-with-django
- python-version: "3.9"
django-version: "5.0.*"
- python-version: "3.9"
django-version: "5.1.*"

steps:
- uses: actions/checkout@v3
Expand All @@ -53,7 +55,7 @@ jobs:
- name: Patch templates
run: |
mkdir -p adminsortable2/templates/adminsortable2/edit_inline
DJANGO_VERSIONS=("4.2" "5.0")
DJANGO_VERSIONS=("4.2" "5.0" "5.1")
for django_version in ${DJANGO_VERSIONS[@]}; do
echo $django_version
curl --silent --output adminsortable2/templates/adminsortable2/edit_inline/stacked-django-$django_version.html https://raw.githubusercontent.com/django/django/stable/$django_version.x/django/contrib/admin/templates/admin/edit_inline/stacked.html
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def readfile(filename):
'Framework :: Django',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.0',
'Framework :: Django :: 5.1',
]


Expand Down

0 comments on commit 7c9b83e

Please sign in to comment.