Skip to content

Commit

Permalink
Version 7 breaking changes notes
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksihakli authored Oct 2, 2024
1 parent b54019f commit 4e89d72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/2_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/jazzband/django-axes/pull/1222>`_ for reference.


Version 6 breaking changes and upgrading from django-axes version 5
-------------------------------------------------------------------

Expand Down

0 comments on commit 4e89d72

Please sign in to comment.