mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 22:49:50 +03:00
Fix openapi schema method mapping
Fix incorrect schema method mapping for "patch" whose action is called "partial_update".
This commit is contained in:
parent
1142ee5fc1
commit
d3cecabd23
|
@ -137,7 +137,7 @@ class AutoSchema(ViewInspector):
|
|||
'get': 'retrieve',
|
||||
'post': 'create',
|
||||
'put': 'update',
|
||||
'patch': 'partialUpdate',
|
||||
'patch': 'partial_update',
|
||||
'delete': 'destroy',
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user