mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
Extra docs on PATCH with no object.
This commit is contained in:
parent
110d549404
commit
e7927e9bca
|
@ -149,6 +149,8 @@ class UpdateModelMixin(object):
|
|||
# return None.
|
||||
self.check_permissions(clone_request(self.request, 'POST'))
|
||||
else:
|
||||
# PATCH requests where the object does not exist should still
|
||||
# return a 404 response.
|
||||
raise
|
||||
|
||||
def pre_save(self, obj):
|
||||
|
|
Loading…
Reference in New Issue
Block a user