Skip to content

Commit 5ad464b

Browse files
committed
change inner_params_decorator so it explicits arg1
Use one of the args explicitly in one of the decorators. This makes sure, that the function which tries to get to the bottom of the decorator chain, doesn't just look for the first function with named parameters.
1 parent 917deec commit 5ad464b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_classy/view_classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def decorated_function(*args, **kwargs):
188188

189189
def inner_params_decorator(f):
190190
@wraps(f)
191-
def wrapper(*args, **kwargs):
192-
return f(*args, **kwargs)
191+
def wrapper(self, foo, *args, **kwargs):
192+
return f(self, foo, *args, **kwargs)
193193
return wrapper
194194

195195

0 commit comments

Comments
 (0)