Add support for Django 3.2

This commit is contained in:
Hasan Ramezani 2021-04-06 14:48:29 +02:00 committed by Aleksi Häkli
parent ea4d3c477d
commit 6b2da1f152
5 changed files with 11 additions and 4 deletions

View file

@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy3']
django-version: ['2.2', '3.0', '3.1']
django-version: ['2.2', '3.0', '3.1', '3.2']
# Tox configuration for QA environment
include:
- python-version: '3.8'

View file

@ -7,6 +7,8 @@ WIP
- Improve message formatting for lockout message and translations.
[ashokdelphia]
- Add support for Django 3.2
[hramezani]
5.13.1 (2021-02-22)

View file

@ -11,7 +11,7 @@ from axes.helpers import (
get_credentials,
get_failure_limit,
)
from axes.models import AccessBase
from axes.models import AccessAttempt
from axes.signals import user_locked_out
log = getLogger(__name__)
@ -44,7 +44,9 @@ class AxesCacheHandler(AbstractAxesHandler, AxesBaseHandler):
)
cache_keys.extend(
get_client_cache_key(AccessBase(username=username, ip_address=ip_address))
get_client_cache_key(
AccessAttempt(username=username, ip_address=ip_address)
)
)
for cache_key in cache_keys:

View file

@ -10,7 +10,7 @@ DJANGO_SETTINGS_MODULE = "tests.settings"
legacy_tox_ini = """
[tox]
envlist =
py{36,37,38,39,py3}-dj{22,30,31}
py{36,37,38,39,py3}-dj{22,30,31,32}
py{38,39}-djmain
py38-djqa
@ -27,6 +27,7 @@ DJANGO =
2.2: dj22
3.0: dj30
3.1: dj31
3.2: dj32
main: djmain
qa: djqa
@ -37,6 +38,7 @@ deps =
dj22: django>=2.2,<2.3
dj30: django>=3.0,<3.1
dj31: django>=3.1,<3.2
dj32: django>=3.2,<4.0
djmain: https://github.com/django/django/archive/main.tar.gz
usedevelop = true
commands = pytest

View file

@ -47,6 +47,7 @@ setup(
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",