django-axes/axes
Adam Johnson fa83253056 Don't trigger axes.W003 for subclasses of AxesBackend
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.
2019-07-09 12:10:26 +02:00
..
handlers Added AXES_ONLY_ADMIN_SITE flag. 2019-07-09 08:12:33 +02:00
locale Turkish translation added 2019-01-12 21:05:21 +03:00
management Add backwards compatibility link for axes_reset_user 2019-05-01 14:30:21 +03:00
migrations Remove reduntant AccessLog.trusted flag 2019-03-13 16:07:25 +02:00
tests Don't trigger axes.W003 for subclasses of AxesBackend 2019-07-09 12:10:26 +02:00
__init__.py Version 5.0.7 2019-06-14 17:22:44 +03:00
admin.py Remove reduntant AccessLog.trusted flag 2019-03-13 16:07:25 +02:00
apps.py Add tests for AXES_ENABLED flag 2019-05-19 18:32:40 +03:00
attempts.py Improve lockout and request handling 2019-05-19 18:32:40 +03:00
backends.py Update architecture docs for exception handling 2019-05-25 21:12:50 +03:00
checks.py Don't trigger axes.W003 for subclasses of AxesBackend 2019-07-09 12:10:26 +02:00
conf.py Added AXES_ONLY_ADMIN_SITE flag. 2019-07-09 08:12:33 +02:00
decorators.py Improve lockout and request handling 2019-05-19 18:32:40 +03:00
exceptions.py Improve lockout and request handling 2019-05-19 18:32:40 +03:00
helpers.py Add str import also 2019-06-14 16:48:17 +03:00
middleware.py Update architecture docs for exception handling 2019-05-25 21:12:50 +03:00
models.py Remove reduntant AccessLog.trusted flag 2019-03-13 16:07:25 +02:00
signals.py Improve handler design 2019-02-22 19:56:05 +02:00
utils.py Move utils to helpers module 2019-02-25 22:54:40 +02:00