diff --git a/rest_framework/decorators.py b/rest_framework/decorators.py index 44ecb4b9d..fb33d83c1 100644 --- a/rest_framework/decorators.py +++ b/rest_framework/decorators.py @@ -157,9 +157,7 @@ def action(methods=None, detail=None, name=None, url_path=None, url_name=None, * 'description': func.__doc__ or None }) if 'suffix' not in kwargs: - func.kwargs.update({ - 'name': func.name, - }) + func.kwargs['name'] = func.name return func return decorator