title: django-rest-framework http put failing with 415 on django 1.5
body: <p>I'm using django-rest-framework (latest) for REST API, and implemented few test cases in django using built in test client.</p>
  
  <p>following django test case was working fine with django version &lt; 1.5</p>
  
  <pre><code>self.client.put('/core/accounts/%s/'% self.account.id,
          data = prepare_dict(self.account),
          HTTP_AUTHORIZATION=self.token)
  </code></pre>
  
  <p>upgraded to django 1.5, all tests are passing except tests related to <strong>HTTP PUT</strong>
  while looking into the issue found this @ <a href="https://docs.djangoproject.com/en/dev/releases/1.5/#options-put-and-delete-requests-in-the-test-client" rel="noreferrer">https://docs.djangoproject.com/en/dev/releases/1.5/#options-put-and-delete-requests-in-the-test-client</a></p>
  
  <blockquote>
    <p>If you were using the data parameter in a PUT request without a
    content_type, you must encode your data before passing it to the test
    client and set the content_type argument.</p>
  </blockquote>
  
  <p>So, updated my test to reflect this change and tried following, but still getting http 415 instead of http 200</p>
  
  <pre><code>from django.test.client import MULTIPART_CONTENT, BOUNDARY, encode_multipart
  self.client.put('/core/accounts/%s/'% self.account.id,
              data = encode_multipart(BOUNDARY, prepare_dict(self.account)),
                  content_type=MULTIPART_CONTENT,
          HTTP_AUTHORIZATION=self.token)
  </code></pre>
  
  <p>Any idea what I'm missing?
  P.S: All functionality is working fine from django-rest-framework built-in web UI</p>