Problem with the django test client, authentication, and PUT.
Using the django client, doing a PUT request with oauth authentication headers raises this exception:
AttributeError: You cannot set the upload handlers after the upload has been processed.
Moving the call to coerce_put_post to above authentication handling solves the problem. See http://bitbucket.org/mmarshall/django-piston/changeset/9cf7ef7ba235/