Skip to content

Commit

Permalink
change explicit_params_decorator so it uses arg1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iartarisi committed Aug 31, 2015
1 parent d0e1bbf commit 05f6d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_classy/view_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def decorated_function(*args, **kwargs):

def explicit_params_decorator(f):
@wraps(f)
def wrapper(*args, **kwargs):
return f(*args, **kwargs)
def wrapper(self, arg1, *args, **kwargs):
return f(self, arg1, *args, **kwargs)
return wrapper


Expand Down

0 comments on commit 05f6d40

Please sign in to comment.