diff options
| author | Mjumbe Wawatu Poe | 2012-09-07 19:14:20 -0400 |
|---|---|---|
| committer | Mjumbe Wawatu Poe | 2012-09-07 19:14:20 -0400 |
| commit | 9c007a6197ca5125bed774cf3089de7759e755d1 (patch) | |
| tree | 3156c0e1d3589d40c5197e175dc4743137bcb9d5 /mkdocs.py | |
| parent | f729d0eb0b8901f18799bb714c60d54c73a1ec98 (diff) | |
| download | django-rest-framework-9c007a6197ca5125bed774cf3089de7759e755d1.tar.bz2 | |
Fix the tests on 1.3 and HEAD
In the latest Django master code, RequestFactory.put behaves fundamentally differently than it did pre-1.5. By default, it expects an octet string as opposed to a dictionary that it will encode like a multipart form. So, for 1.5 and on, we have to be explicit about the multipart type and pre-encode the data. However, pre-1.5 Django expects a dictionary if the content type is multipart. So, the cleanest thing to do is explicitly handle the versions independently.
Diffstat (limited to 'mkdocs.py')
0 files changed, 0 insertions, 0 deletions
