mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-07 07:03:12 +03:00
Update supported versions for 3.14 release (#8662)
* Update supported versions for 3.14 release * Fix up test case for Django 3.0
This commit is contained in:
parent
b658915846
commit
f8b3f38b57
|
@ -54,8 +54,8 @@ There is a live example API for testing purposes, [available here][sandbox].
|
||||||
|
|
||||||
# Requirements
|
# Requirements
|
||||||
|
|
||||||
* Python (3.6, 3.7, 3.8, 3.9, 3.10)
|
* Python 3.6+
|
||||||
* Django (2.2, 3.0, 3.1, 3.2, 4.0, 4.1)
|
* Django 4.1, 4.0, 3.2, 3.1, 3.0
|
||||||
|
|
||||||
We **highly recommend** and only officially support the latest patch release of
|
We **highly recommend** and only officially support the latest patch release of
|
||||||
each Python and Django series.
|
each Python and Django series.
|
||||||
|
|
|
@ -26,7 +26,7 @@ The latest release now fully supports Django 4.1.
|
||||||
Our requirements are now:
|
Our requirements are now:
|
||||||
|
|
||||||
* Python 3.6+
|
* Python 3.6+
|
||||||
* Django 4.1, 4.0, 3.2, 3.1, 2.2 (LTS)
|
* Django 4.1, 4.0, 3.2, 3.1, 3.0
|
||||||
|
|
||||||
## `raise_exceptions` argument for `is_valid` is now keyword-only.
|
## `raise_exceptions` argument for `is_valid` is now keyword-only.
|
||||||
|
|
||||||
|
|
|
@ -219,8 +219,8 @@ class SessionAuthTests(TestCase):
|
||||||
Ensure POSTing form over session authentication with CSRF token succeeds.
|
Ensure POSTing form over session authentication with CSRF token succeeds.
|
||||||
Regression test for #6088
|
Regression test for #6088
|
||||||
"""
|
"""
|
||||||
# Remove this shim when dropping support for Django 2.2.
|
# Remove this shim when dropping support for Django 3.0.
|
||||||
if django.VERSION < (3, 0):
|
if django.VERSION < (3, 1):
|
||||||
from django.middleware.csrf import _get_new_csrf_token
|
from django.middleware.csrf import _get_new_csrf_token
|
||||||
else:
|
else:
|
||||||
from django.middleware.csrf import (
|
from django.middleware.csrf import (
|
||||||
|
|
6
tox.ini
6
tox.ini
|
@ -1,6 +1,6 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
{py36,py37,py38,py39}-django22,
|
{py36,py37,py38,py39}-django30,
|
||||||
{py36,py37,py38,py39}-django31,
|
{py36,py37,py38,py39}-django31,
|
||||||
{py36,py37,py38,py39,py310}-django32,
|
{py36,py37,py38,py39,py310}-django32,
|
||||||
{py38,py39,py310}-{django40,django41,djangomain},
|
{py38,py39,py310}-{django40,django41,djangomain},
|
||||||
|
@ -8,7 +8,7 @@ envlist =
|
||||||
|
|
||||||
[travis:env]
|
[travis:env]
|
||||||
DJANGO =
|
DJANGO =
|
||||||
2.2: django22
|
3.0: django30
|
||||||
3.1: django31
|
3.1: django31
|
||||||
3.2: django32
|
3.2: django32
|
||||||
4.0: django40
|
4.0: django40
|
||||||
|
@ -22,7 +22,7 @@ setenv =
|
||||||
PYTHONDONTWRITEBYTECODE=1
|
PYTHONDONTWRITEBYTECODE=1
|
||||||
PYTHONWARNINGS=once
|
PYTHONWARNINGS=once
|
||||||
deps =
|
deps =
|
||||||
django22: Django>=2.2,<3.0
|
django30: Django>=3.0,<3.1
|
||||||
django31: Django>=3.1,<3.2
|
django31: Django>=3.1,<3.2
|
||||||
django32: Django>=3.2,<4.0
|
django32: Django>=3.2,<4.0
|
||||||
django40: Django>=4.0,<4.1
|
django40: Django>=4.0,<4.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user