Skip to content

Commit 7583b3a

Browse files
author
Ryan P Kilby
committed
Set data ref on underlying django request
1 parent 353fe1f commit 7583b3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rest_framework/request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ 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._post = self._data
255256
self._request._files = self._files
256257

257258
def _load_stream(self):

0 commit comments

Comments
 (0)