From 4e89d72b92db044ff3f6b23ea2ab2e681211c98e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksi=20H=C3=A4kli?= Date: Wed, 2 Oct 2024 20:30:44 +0300 Subject: [PATCH] Version 7 breaking changes notes --- docs/2_installation.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/2_installation.rst b/docs/2_installation.rst index ccf68d04..5da3677b 100644 --- a/docs/2_installation.rst +++ b/docs/2_installation.rst @@ -75,6 +75,14 @@ Many people have different configurations for their development and production e and running the application with misconfigured settings can prevent security features from working. +Version 7 breaking changes and upgrading from django-axes version 6 +------------------------------------------------------------------- + +If you use ``settings.AXES_COOLOFF_TIME`` for configuring a callable that returns the cooloff time, it needs to accept at minimum a ``request`` argument of type ``HttpRequest`` from version 7 onwards. Example: ``AXES_COOLOFF_TIME = lambda request: timedelta(hours=2)`` (new call signature) instead of ``AXES_COOLOFF_TIME = lambda: timedelta(hours=2)`` (old cal signature). + +Please see configuration documentation and `jazzband/django-axes#1222 `_ for reference. + + Version 6 breaking changes and upgrading from django-axes version 5 -------------------------------------------------------------------