Skip to content

Added support for Django 4.0 #1010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ any parts of the framework not mentioned in the documentation should generally b

## [Unreleased]

### Added

* Added support for Django 4.0.

### Fixed

* Adjusted error messages to correctly use capital "JSON:API" abbreviation as used in the specification.
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Requirements
------------

1. Python (3.6, 3.7, 3.8, 3.9)
2. Django (2.2, 3.0, 3.1, 3.2)
2. Django (2.2, 3.0, 3.1, 3.2, 4.0)
3. Django REST framework (3.12)

We **highly** recommend and only officially support the latest patch release of each Python, Django and REST framework series.
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ like the following:
## Requirements

1. Python (3.6, 3.7, 3.8, 3.9)
2. Django (2.2, 3.0, 3.1, 3.2)
2. Django (2.2, 3.0, 3.1, 3.2, 4.0)
3. Django REST framework (3.12)

We **highly** recommend and only officially support the latest patch release of each Python, Django and REST framework series.
Expand Down
1 change: 1 addition & 0 deletions example/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

MEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))
MEDIA_URL = "/media/"
USE_TZ = False

DATABASE_ENGINE = "sqlite3"

Expand Down
2 changes: 1 addition & 1 deletion example/urls_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import re_path
from django.urls import re_path
from rest_framework import routers

from .api.resources.identity import GenericIdentity, Identity
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-optionals.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
django-filter==21.1
django-polymorphic==3.0.0
django-polymorphic==3.1.0
pyyaml==6.0
uritemplate==4.1.1
5 changes: 5 additions & 0 deletions requirements/requirements-testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ pytest-cov==3.0.0
pytest-django==4.4.0
pytest-factoryboy==2.1.0
syrupy==1.4.7
# TODO remove pytz dep again once DRF higher than 3.12.4 is released
# Django 4.0 removed dependency on pytz and made it optional but
# DRF requires it and will define it as dependency in future versions
# only adding this to testing though as DJA does not directly use pytz
pytz==2021.3
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ DJANGO_SETTINGS_MODULE=example.settings.test
filterwarnings =
error::DeprecationWarning
error::PendingDeprecationWarning
# Django Debug Toolbar currently (2021-04-07) specifies default_app_config which is deprecated in Django 3.2:
ignore:'debug_toolbar' defines default_app_config = 'debug_toolbar.apps.DebugToolbarConfig'. Django now detects this configuration automatically. You can remove default_app_config.:PendingDeprecationWarning
# TODO remove again once DRF higher than 3.12.4 has been released
ignore:'rest_framework' defines default_app_config
# TODO remove in next major version of DJA 5.0.0
# this deprecation warning filter needs to be added as AuthorSerializer is used in
# too many tests which introduced the type field name in tests
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_package_data(package):
install_requires=[
"inflection>=0.3.0",
"djangorestframework>=3.12,<3.13",
"django>=2.2,<3.3",
"django>=2.2,<4.1",
],
extras_require={
"django-polymorphic": ["django-polymorphic>=2.0"],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_relations.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from django.conf.urls import re_path
from django.urls import re_path
from rest_framework import status
from rest_framework.fields import SkipField
from rest_framework.routers import SimpleRouter
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
envlist =
py{36,37,38,39}-django{22,30,31,32}-drf{312,master},
py{38,39}-django40-drf{312,master},
lint,docs

[testenv]
Expand All @@ -9,6 +10,7 @@ deps =
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0rc1,<5.0
drf312: djangorestframework>=3.12,<3.13
drfmaster: https://github.com/encode/django-rest-framework/archive/master.zip
-rrequirements/requirements-testing.txt
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy