mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Add missing @wraps decorator
This keeps the original function name and docstring for the decorated function
This commit is contained in:
parent
419478b954
commit
10f6e621ce
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue