Skip to content

Commit e8750b7

Browse files
authored
Merge pull request #153 from jazzband/152-dj51
Add Django-5.1 support #152
2 parents f5b8ac9 + b5e7f6a commit e8750b7

File tree

7 files changed

+13
-5
lines changed

7 files changed

+13
-5
lines changed

.github/workflows/test-examples-proj1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
max-parallel: 5
1212
matrix:
1313
python-version: ['3.10']
14-
django-version: ['3.2', '4.0', '4.2', '5.0']
14+
django-version: ['3.2', '4.0', '4.2', '5.0', '5.1']
1515
include:
1616
- django-version: 'main'
1717
python-version: '3.10'

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
max-parallel: 5
1212
matrix:
1313
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
14-
django-version: ['3.2', '4.0', '4.2', '5.0']
14+
django-version: ['3.2', '4.0', '4.2', '5.0', '5.1']
1515
exclude:
1616
- python-version: '3.11'
1717
django-version: '3.2'
@@ -21,6 +21,10 @@ jobs:
2121
python-version: '3.8'
2222
- django-version: '5.0'
2323
python-version: '3.9'
24+
- django-version: '5.1'
25+
python-version: '3.8'
26+
- django-version: '5.1'
27+
python-version: '3.9'
2428
- django-version: 'main'
2529
python-version: '3.8'
2630
- django-version: 'main'

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CHANGES
77
Features:
88

99
* #143 Add Django-5.0 support.
10+
* #152 Add Django-5.1 support.
1011

1112
4.1.1 (2024/08/20)
1213
------------------

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Support versions
4444
This product is tested with:
4545

4646
* Python-3.8, 3.9, 3.10, 3.11, 3.12
47-
* Django-3.2, 4.0, 4.2, 5.0
47+
* Django-3.2, 4.0, 4.2, 5.0, 5.1
4848

4949
License
5050
=======

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ classifiers = [
2424
"Framework :: Django :: 4.0",
2525
"Framework :: Django :: 4.2",
2626
"Framework :: Django :: 5.0",
27+
"Framework :: Django :: 5.1",
2728
"Intended Audience :: Developers",
2829
"License :: OSI Approved :: Apache Software License",
2930
"Programming Language :: Python",
@@ -36,7 +37,7 @@ classifiers = [
3637
"Topic :: Software Development :: Libraries :: Python Modules",
3738
]
3839
dependencies = [
39-
"django<5.1",
40+
"django<5.2",
4041
"backports.zoneinfo;python_version<'3.9'",
4142
]
4243

tests/test_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ def set_up_test_model(
216216
# Make the "current" state.
217217
model_options = {
218218
'swappable': 'TEST_SWAP_MODEL',
219-
'index_together': [['weight', 'pink']] if index_together else [],
220219
'unique_together': [['pink', 'weight']] if unique_together else [],
221220
}
222221
if options:

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ envlist =
44
py{38,39,310,311,312}-dj40
55
py{38,39,310,311,312}-dj42
66
py{310,311,312}-dj50
7+
py{310,311,312}-dj51
78
lint
89
check
910
skipsdist = True
@@ -22,6 +23,7 @@ DJANGO =
2223
4.0: dj40
2324
4.2: dj42
2425
5.0: dj50
26+
5.1: dj51
2527
main: djmain
2628

2729
[testenv]
@@ -37,6 +39,7 @@ deps =
3739
dj40: Django>=4.0,<4.1
3840
dj42: Django>=4.2,<5.0
3941
dj50: Django>=5.0,<5.1
42+
dj51: Django>=5.1,<5.2
4043
djmain: https://github.com/django/django/archive/main.tar.gz
4144
setenv =
4245
DJANGO_SETTINGS_MODULE = settings

0 commit comments

Comments
 (0)