mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-19 13:01:08 +00:00
The [usage documentation](https://django-axes.readthedocs.io/en/latest/3_usage.html) advises to create subclass of `AxesBackend` to ignore the lack of `request` if necessary. I've done this in a project using `django-oauth-toolkit`, which doesn't pass `request` (though it should as per [this PR](https://github.com/jazzband/django-oauth-toolkit/pull/643)). This meant that the axes.W003 check was being triggered, so I've fixed it to check for subclasses of `AxesBackend` as well as the class itself. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| settings.py | ||
| test_attempts.py | ||
| test_backends.py | ||
| test_checks.py | ||
| test_decorators.py | ||
| test_handlers.py | ||
| test_logging.py | ||
| test_login.py | ||
| test_management.py | ||
| test_middleware.py | ||
| test_models.py | ||
| test_signals.py | ||
| test_utils.py | ||
| urls.py | ||