This commit is contained in:
Camille Harang 2012-02-01 23:56:54 +01:00
parent 894f632598
commit da8187d2c2

View File

@ -608,7 +608,7 @@ class UpdateModelMixin(ModelMixin):
# 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
try:
self.model_instance = self.get_instance(*query_kwargs)
self.model_instance = self.get_instance(**query_kwargs)
for (key, val) in self.CONTENT.items():
setattr(self.model_instance, key, val)