diff options
| author | Tom Christie | 2013-08-23 13:35:50 +0100 | 
|---|---|---|
| committer | Tom Christie | 2013-08-23 13:35:50 +0100 | 
| commit | e7927e9bca5bc0d0ac3b528e68244c713c5df97f (patch) | |
| tree | 5c599ad7b8e8256f1179bf89bcd7ca1c57ed5ed2 /rest_framework/mixins.py | |
| parent | 110d54940451e19f54792e78bfaba8a75cfd04f4 (diff) | |
| download | django-rest-framework-e7927e9bca5bc0d0ac3b528e68244c713c5df97f.tar.bz2 | |
Extra docs on PATCH with no object.
Diffstat (limited to 'rest_framework/mixins.py')
| -rw-r--r-- | rest_framework/mixins.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py index 59d64469..426865ff 100644 --- a/rest_framework/mixins.py +++ b/rest_framework/mixins.py @@ -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): | 
