mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
fixup! fixup! Handle "suffix" used in action decorator kwargs
This commit is contained in:
parent
f2d0809816
commit
38c53cf210
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user