toastdriven/django-tastypie — Issue #340: PATCH giving errors
Author: bmvdweerd
Created: 2012-01-24 23:28:01+00:00
State: open

Doing a partial update on a model using PATCH was giving errors.

As it turns out, both the `patch_list` and `patch_detail` functions of class `Resource` make an erroneous function call to its `deserialize` function in `resources.py` (ie. passing the `request` object, its `raw_post_data`, and a `format`—the middle argument of which shouldn't be there, as it's retrieved in the `deserialize` function).