File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from django .utils .termcolors import colorize
1111from requests import Session
1212from rest_framework .views import APIView
13+ from functools import wraps
1314
1415from analytics .entries import (
1516 AnalyticsEntry ,
@@ -151,6 +152,7 @@ def record_api_function(
151152 def decorator (func ):
152153 explicit_args_names = func .__code__ .co_varnames [: func .__code__ .co_argcount ]
153154
155+ @wraps (func )
154156 def wrapped_func (* args , ** kwargs ):
155157 explicit_args = analytics_recorder ._extract_explicit_args (
156158 explicit_args_names , args , kwargs
@@ -205,6 +207,7 @@ def decorator(func):
205207 "UnaryFuncEntry can only be used with functions with a single argument"
206208 )
207209
210+ @wraps (func )
208211 def wrapped_func (* args , ** kwargs ):
209212 explicit_args = analytics_recorder ._extract_explicit_args (
210213 explicit_args_names , args , kwargs
You can’t perform that action at this time.
0 commit comments