Add missing @wraps decorator

This keeps the original function name and docstring for the decorated function
This commit is contained in:
Aleksi Häkli 2021-01-05 11:00:13 +02:00
parent 419478b954
commit 10f6e621ce

View file

@ -5,6 +5,7 @@ from axes.helpers import get_lockout_response
def axes_dispatch(func):
@wraps(func)
def inner(request, *args, **kwargs):
if AxesProxyHandler.is_allowed(request):
return func(request, *args, **kwargs)