We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c292f commit a3cc8a5Copy full SHA for a3cc8a5
rest_framework/viewsets.py
@@ -34,10 +34,10 @@ def _is_extra_action(attr):
34
35
def _check_attr_name(func, name):
36
assert func.__name__ == name, (
37
- f'Expected function (`{func.__name__}`) to match its attribute name '
38
- f'(`{name}`). If using a decorator, ensure the inner function is '
39
- f'decorated with `functools.wraps`, or that `{func.__name__}.__name__` '
40
- f'is otherwise set to `{name}`.')
+ 'Expected function (`{func.__name__}`) to match its attribute name '
+ '(`{name}`). If using a decorator, ensure the inner function is '
+ 'decorated with `functools.wraps`, or that `{func.__name__}.__name__` '
+ 'is otherwise set to `{name}`.').format(func=func, name=name)
41
return func
42
43
0 commit comments