Fix openapi schema method mapping

Fix incorrect schema method mapping for "patch" whose action
is called "partial_update".
This commit is contained in:
Alejandro Solda 2022-11-03 18:53:31 -03:00
parent 1142ee5fc1
commit d3cecabd23

View File

@ -137,7 +137,7 @@ class AutoSchema(ViewInspector):
'get': 'retrieve',
'post': 'create',
'put': 'update',
'patch': 'partialUpdate',
'patch': 'partial_update',
'delete': 'destroy',
}