mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
Merge 002e672952
into bc6c5df109
This commit is contained in:
commit
81d98ef760
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user