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.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
runtests | Loading commit data... | |
static/djangorestframework/css | Loading commit data... | |
templates/djangorestframework | Loading commit data... | |
templatetags | Loading commit data... | |
tests | Loading commit data... | |
utils | Loading commit data... | |
__init__.py | Loading commit data... | |
authentication.py | Loading commit data... | |
compat.py | Loading commit data... | |
decorators.py | Loading commit data... | |
exceptions.py | Loading commit data... | |
fields.py | Loading commit data... | |
generics.py | Loading commit data... | |
mixins.py | Loading commit data... | |
models.py | Loading commit data... | |
parsers.py | Loading commit data... | |
permissions.py | Loading commit data... | |
renderers.py | Loading commit data... | |
request.py | Loading commit data... | |
response.py | Loading commit data... | |
reverse.py | Loading commit data... | |
serializers.py | Loading commit data... | |
settings.py | Loading commit data... | |
status.py | Loading commit data... | |
throttling.py | Loading commit data... | |
urlpatterns.py | Loading commit data... | |
urls.py | Loading commit data... | |
views.py | Loading commit data... |