mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-19 04:51: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. |
||
|---|---|---|
| .. | ||
| handlers | ||
| locale | ||
| management | ||
| migrations | ||
| tests | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| attempts.py | ||
| backends.py | ||
| checks.py | ||
| conf.py | ||
| decorators.py | ||
| exceptions.py | ||
| helpers.py | ||
| middleware.py | ||
| models.py | ||
| signals.py | ||
| utils.py | ||