mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 11:30:12 +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
|
'description': func.__doc__ or None
|
||||||
})
|
})
|
||||||
if 'suffix' not in kwargs:
|
if 'suffix' not in kwargs:
|
||||||
func.kwargs.update({
|
func.kwargs['name'] = func.name
|
||||||
'name': func.name,
|
|
||||||
})
|
|
||||||
|
|
||||||
return func
|
return func
|
||||||
return decorator
|
return decorator
|
||||||
|
|
Loading…
Reference in New Issue
Block a user