mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-24 23:40:43 +03:00
* -> **
This commit is contained in:
parent
894f632598
commit
da8187d2c2
|
@ -608,7 +608,7 @@ class UpdateModelMixin(ModelMixin):
|
||||||
# TODO: update on the url of a non-existing resource url doesn't work
|
# TODO: update on the url of a non-existing resource url doesn't work
|
||||||
# correctly at the moment - will end up with a new url
|
# correctly at the moment - will end up with a new url
|
||||||
try:
|
try:
|
||||||
self.model_instance = self.get_instance(*query_kwargs)
|
self.model_instance = self.get_instance(**query_kwargs)
|
||||||
|
|
||||||
for (key, val) in self.CONTENT.items():
|
for (key, val) in self.CONTENT.items():
|
||||||
setattr(self.model_instance, key, val)
|
setattr(self.model_instance, key, val)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user