From 10f6e621ce4166ece21dc37cf1f5ffc1de538945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksi=20H=C3=A4kli?= Date: Tue, 5 Jan 2021 11:00:13 +0200 Subject: [PATCH] Add missing @wraps decorator This keeps the original function name and docstring for the decorated function --- axes/decorators.py | 1 + 1 file changed, 1 insertion(+) diff --git a/axes/decorators.py b/axes/decorators.py index 0cda982..6ad41c6 100644 --- a/axes/decorators.py +++ b/axes/decorators.py @@ -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)