mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 22:04:48 +03:00
Added POST compatibility, fixes test
This commit is contained in:
parent
1441469d38
commit
45203d20e6
|
@ -385,6 +385,10 @@ class Request(object):
|
|||
self._full_data = self._data.copy()
|
||||
self._full_data.update(self._files)
|
||||
|
||||
# Point the underlying request data to our parsed data for backwards compatibility.
|
||||
self._request._post = self._data
|
||||
self._request._files = self._files
|
||||
|
||||
# Method overloading - change the method and remove the param from the content.
|
||||
if (
|
||||
self._METHOD_PARAM and
|
||||
|
|
Loading…
Reference in New Issue
Block a user