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 ed733b7 commit b06c8eaCopy full SHA for b06c8ea
rest_framework/viewsets.py
@@ -35,10 +35,10 @@ def _is_extra_action(attr):
35
36
def _check_attr_name(func, name):
37
assert func.__name__ == name, (
38
- f'Expected function (`{func.__name__}`) to match its attribute name '
39
- f'(`{name}`). If using a decorator, ensure the inner function is '
40
- f'decorated with `functools.wraps`, or that `{func.__name__}.__name__` '
41
- 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)
42
return func
43
44
0 commit comments