Skip to content

Commit 05f6d40

Browse files
committed
change explicit_params_decorator so it uses 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 d0e1bbf commit 05f6d40

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 explicit_params_decorator(f):
190190
@wraps(f)
191-
def wrapper(*args, **kwargs):
192-
return f(*args, **kwargs)
191+
def wrapper(self, arg1, *args, **kwargs):
192+
return f(self, arg1, *args, **kwargs)
193193
return wrapper
194194

195195

0 commit comments

Comments
 (0)