Skip to content

Commit aa99a5a

Browse files
authored
Merge pull request #323 from Dresdn/Dresdn/issue-322
Support Django 4.1
2 parents a98c0d2 + aa64b96 commit aa99a5a

File tree

7 files changed

+584
-556
lines changed

7 files changed

+584
-556
lines changed

.github/workflows/test.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ['3.7', '3.8', '3.9', '3.10']
11-
django-version: ['2.2', '3.2', '4.0']
12-
exclude:
13-
- python-version: '3.10'
14-
django-version: '2.2'
15-
- python-version: '3.7'
16-
django-version: '4.0'
10+
python-version: ['3.8', '3.9', '3.10']
11+
django-version: ['3.2', '4.0', '4.1']
1712

1813
steps:
1914
- uses: actions/checkout@v3

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ We follow [Semantic Versions](https://semver.org/) starting at the `0.14.0` rele
66

77
### Features
88

9+
- Add support for Django 4.1
10+
911
### Bug Fixes
1012

1113
- Fixes missing `Add another` button for inlines in `BaseEntityAdmin`
1214
- Fixes saving of Attribute date types rendering using `BaseDynamicEntityForm` [#261](https://github.com/jazzband/django-eav2/issues/261)
1315

16+
### Misc
17+
18+
- Drops support for Django 2.2 and Python 3.7
19+
1420
## 1.2.3 (2022-08-15)
1521

1622
### Bug Fixes

eav/migrations/0003_auto_20210404_2209.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
import django.core.serializers.json
44
from django.db import migrations
5+
from django.db.models import JSONField
56

67
import eav.fields
78

8-
try:
9-
from django.db.models import JSONField
10-
except ImportError:
11-
from django_jsonfield_backport.models import JSONField
12-
139

1410
class Migration(migrations.Migration):
1511
dependencies = [

eav/models.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@
4242
except ImportError:
4343
from typing_extensions import Final
4444

45-
try:
46-
from django.db.models import JSONField
47-
except ImportError:
48-
from django_jsonfield_backport.models import JSONField
4945

5046
CHARFIELD_LENGTH: Final = 100
5147

@@ -526,7 +522,7 @@ class Meta:
526522
verbose_name=_('Value text'),
527523
)
528524

529-
value_json = JSONField(
525+
value_json = models.JSONField(
530526
default=dict,
531527
encoder=DjangoJSONEncoder,
532528
blank=True,

poetry.lock

+571-534
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,14 @@ classifiers = [
4949
"Topic :: Database",
5050
"Topic :: Software Development :: Libraries :: Python Modules",
5151
"Framework :: Django",
52-
"Framework :: Django :: 2.2",
5352
"Framework :: Django :: 3.2",
5453
"Framework :: Django :: 4.0",
54+
"Framework :: Django :: 4.1",
5555
]
5656

5757
[tool.poetry.dependencies]
58-
python = "^3.7"
59-
django = ">=2.2, <4.1"
60-
django-jsonfield-backport = "^1.0.4"
58+
python = "^3.8"
59+
django = ">=3.2, <4.2"
6160

6261
# Docs extra:
6362
sphinx = { version = "^5.0", optional = true }

test_project/settings.py

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
'django.contrib.sessions',
2727
'django.contrib.messages',
2828
'django.contrib.staticfiles',
29-
'django_jsonfield_backport',
3029
# Test Project:
3130
'test_project.apps.TestAppConfig',
3231
# Our app:

0 commit comments

Comments
 (0)