mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
9c007a6197
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. |
||
---|---|---|
.. | ||
runtests | ||
static/djangorestframework/css | ||
templates/djangorestframework | ||
templatetags | ||
tests | ||
utils | ||
__init__.py | ||
authentication.py | ||
compat.py | ||
decorators.py | ||
exceptions.py | ||
fields.py | ||
generics.py | ||
mixins.py | ||
models.py | ||
parsers.py | ||
permissions.py | ||
renderers.py | ||
request.py | ||
response.py | ||
reverse.py | ||
serializers.py | ||
settings.py | ||
status.py | ||
throttling.py | ||
urlpatterns.py | ||
urls.py | ||
views.py |