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 -------------------------------------------------------------------