Add username to docs of lockout template

This commit is contained in:
Daniel Brown 2020-10-04 01:05:31 +02:00 committed by Aleksi Häkli
parent 55c5ce5eae
commit ef39b3da2d

View file

@ -61,7 +61,7 @@ The following ``settings.py`` options are available for customizing Axes behavio
* ``AXES_CACHE``: The name of the cache for Axes to use.
Default: ``'default'``
* ``AXES_LOCKOUT_TEMPLATE``: If set, specifies a template to render when a
user is locked out. Template receives ``cooloff_timedelta``, ``cooloff_time`` and ``failure_limit`` as
user is locked out. Template receives ``cooloff_timedelta``, ``cooloff_time``, ``username`` and ``failure_limit`` as
context variables.
Default: ``None``
* ``AXES_LOCKOUT_URL``: If set, specifies a URL to redirect to on lockout. If both