Skip to content

Commit 278cb68

Browse files
author
Ryan P Kilby
committed
Set data ref on underlying django request
1 parent 7b3341a commit 278cb68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rest_framework/request.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,10 @@ def _load_data_and_files(self):
250250
else:
251251
self._full_data = self._data
252252

253-
# copy files refs to the underlying request so that closable
253+
# copy data & files refs to the underlying request so that closable
254254
# objects are handled appropriately.
255-
self._request._files = self._files
255+
self._request._post = self.POST
256+
self._request._files = self.FILES
256257

257258
def _load_stream(self):
258259
"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy