Django Tastypie not Updating Resource with ManyToManyField
问题 Why doesn't my resource with a ManyToManyField update with this PUT request? curl --dump-header - -H "Content-Type: application/json" -X PUT --data '{"uuid":"blah","pass_token":"blah","favorites": ["/api/v1/organizations/1/"]}' http://localhost:8000/api/v1/devices/2/ I get this response: HTTP/1.0 400 BAD REQUEST Date: Wed, 11 Jul 2012 22:21:15 GMT Server: WSGIServer/0.1 Python/2.7.2 Content-Type: application/json; charset=utf-8 {"favorites": ["\"/api/v1/organizations/1/\" is not a valid value