Updated documentation on calling _request.body

This commit is contained in:
Ryan P Kilby 2015-05-27 12:33:56 -04:00
parent 583686cd06
commit fdc0711812

View File

@ -382,6 +382,9 @@ class Request(object):
# Reading the request body before directly accessing the POST attr will
# ensure the request body is stored, making it accessible again later.
# DRF uses multipart/form-data by default, which triggers an optimization
# in the underlying django request. For more details:
# https://github.com/django/django/blob/1.8.2/tests/requests/tests.py#L353-L372
self._request.body
data = self._request.POST