Improve documentation on axes.utils.reset

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
Aleksi Häkli 2019-02-26 13:04:56 +02:00
parent 8df219e976
commit 5f61b0ae76
No known key found for this signature in database
GPG key ID: 3E7146964D726BBE

View file

@ -27,3 +27,8 @@ In your code, you can use the ``axes.utils.reset`` function.
- ``reset()`` will reset all lockouts and access records.
- ``reset(ip=ip)`` will clear lockouts and records for the given IP address.
- ``reset(username=username)`` will clear lockouts and records for the given username.
Please note that if you give both ``username`` and ``ip`` arguments to ``reset``
that attempts that have both the set IP and username are reset.
The effective behaviour of ``reset`` is to ``and`` the terms instead of ``or``ing them.