mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 17:09:59 +03:00
Fix
This commit is contained in:
parent
09eeca136e
commit
d11b569ef4
|
@ -147,7 +147,6 @@ def action(methods=None, detail=None, url_path=None, url_name=None, underscore2d
|
|||
else:
|
||||
func.url_path = func.__name__.replace('_', '-') if underscore2dash else func.__name__
|
||||
|
||||
func.url_path = url_path if url_path else func.__name__
|
||||
func.url_name = url_name if url_name else func.__name__.replace('_', '-')
|
||||
func.kwargs = kwargs
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user