mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Set data & file refs on underlying Django request
This commit is contained in:
parent
d507a6943a
commit
4964ec8b37
|
@ -250,6 +250,11 @@ class Request(object):
|
||||||
else:
|
else:
|
||||||
self._full_data = self._data
|
self._full_data = self._data
|
||||||
|
|
||||||
|
# copy data & files refs to the underlying request so that closable
|
||||||
|
# objects are handled appropriately.
|
||||||
|
self._request._post = self._data
|
||||||
|
self._request._files = self._files
|
||||||
|
|
||||||
def _load_stream(self):
|
def _load_stream(self):
|
||||||
"""
|
"""
|
||||||
Return the content body of the request, as a stream.
|
Return the content body of the request, as a stream.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user