Skip to content

Commit 4e89d72

Browse files
authored
Version 7 breaking changes notes
1 parent b54019f commit 4e89d72

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/2_installation.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ Many people have different configurations for their development and production e
7575
and running the application with misconfigured settings can prevent security features from working.
7676

7777

78+
Version 7 breaking changes and upgrading from django-axes version 6
79+
-------------------------------------------------------------------
80+
81+
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).
82+
83+
Please see configuration documentation and `jazzband/django-axes#1222 <https://github.com/jazzband/django-axes/pull/1222>`_ for reference.
84+
85+
7886
Version 6 breaking changes and upgrading from django-axes version 5
7987
-------------------------------------------------------------------
8088

0 commit comments

Comments
 (0)