diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py index 43950c4bf..114ad4f10 100644 --- a/rest_framework/mixins.py +++ b/rest_framework/mixins.py @@ -163,6 +163,7 @@ class UpdateModelMixin(object): """ Set any attributes on the object that are implicit in the request. """ + super(UpdateModelMixin, self).pre_save(obj) # pk and/or slug attributes are implicit in the URL. lookup_url_kwarg = self.lookup_url_kwarg or self.lookup_field lookup = self.kwargs.get(lookup_url_kwarg, None)