aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/request.py
diff options
context:
space:
mode:
authorTom Christie2015-02-17 10:58:00 +0000
committerTom Christie2015-02-17 10:58:00 +0000
commitdbd23521656b366cbaa1382a0d222f8fe4e3a326 (patch)
tree8fc86473ecc5097909250e0a9d5d440baabaf403 /rest_framework/request.py
parent76fe710c0d81cbf21f246de6026e7360179ea053 (diff)
downloaddjango-rest-framework-dbd23521656b366cbaa1382a0d222f8fe4e3a326.tar.bz2
Fixes for latest pep8 updates. Refs #2563.
Diffstat (limited to 'rest_framework/request.py')
-rw-r--r--rest_framework/request.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rest_framework/request.py b/rest_framework/request.py
index 081ace23..fd4f6a3e 100644
--- a/rest_framework/request.py
+++ b/rest_framework/request.py
@@ -383,9 +383,9 @@ class Request(object):
# We only need to use form overloading on form POST requests.
if (
- not USE_FORM_OVERLOADING
- or self._request.method != 'POST'
- or not is_form_media_type(self._content_type)
+ self._request.method != 'POST' or
+ not USE_FORM_OVERLOADING or
+ not is_form_media_type(self._content_type)
):
return