Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
env:
PYTHON: ${{ matrix.python-version }}
steps:
Expand Down
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 Python 3.11.

## [6.0.0] - 2022-09-24

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ As a Django REST framework JSON:API (short DJA) we are trying to address followi
Requirements
------------

1. Python (3.7, 3.8, 3.9, 3.10)
1. Python (3.7, 3.8, 3.9, 3.10, 3.11)
2. Django (3.2, 4.0, 4.1)
3. Django REST framework (3.13, 3.14)

Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ like the following:

## Requirements

1. Python (3.7, 3.8, 3.9, 3.10)
1. Python (3.7, 3.8, 3.9, 3.10, 3.11)
2. Django (3.2, 4.0, 4.1)
3. Django REST framework (3.13, 3.14)

Expand Down
10 changes: 7 additions & 3 deletions example/tests/test_model_viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,14 @@ def test_key_in_post(self):
def test_404_error_pointer(self):
self.client.login(username="miles", password="pw")
not_found_url = reverse("user-detail", kwargs={"pk": 12345})
errors = {
"errors": [{"detail": "Not found.", "status": "404", "code": "not_found"}]
}

response = self.client.get(not_found_url)
assert 404 == response.status_code
result = response.json()

# exact detail message differs between Python versions
# but only relevant is that there is a message
assert result["errors"][0].pop("detail") is not None

errors = {"errors": [{"status": "404", "code": "not_found"}]}
assert errors == response.json()
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def get_package_data(package):
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
envlist =
py{37,38,39,310}-django32-drf{313,314,master},
py{38,39,310}-django40-drf{313,314,master},
py{38,39,310}-django41-drf{314,master},
py{38,39,310,311}-django41-drf{314,master},
lint,docs

[testenv]
Expand Down