aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/renderers.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/renderers.py
parent76fe710c0d81cbf21f246de6026e7360179ea053 (diff)
downloaddjango-rest-framework-dbd23521656b366cbaa1382a0d222f8fe4e3a326.tar.bz2
Fixes for latest pep8 updates. Refs #2563.
Diffstat (limited to 'rest_framework/renderers.py')
-rw-r--r--rest_framework/renderers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rest_framework/renderers.py b/rest_framework/renderers.py
index 6256acdd..339bd0d1 100644
--- a/rest_framework/renderers.py
+++ b/rest_framework/renderers.py
@@ -458,8 +458,8 @@ class BrowsableAPIRenderer(BaseRenderer):
return True # Don't actually need to return a form
if (
- not getattr(view, 'get_serializer', None)
- or not any(is_form_media_type(parser.media_type) for parser in view.parser_classes)
+ not getattr(view, 'get_serializer', None) or
+ not any(is_form_media_type(parser.media_type) for parser in view.parser_classes)
):
return
@@ -503,8 +503,8 @@ class BrowsableAPIRenderer(BaseRenderer):
# If we're not using content overloading there's no point in
# supplying a generic form, as the view won't treat the form's
# value as the content of the request.
- if not (api_settings.FORM_CONTENT_OVERRIDE
- and api_settings.FORM_CONTENTTYPE_OVERRIDE):
+ if not (api_settings.FORM_CONTENT_OVERRIDE and
+ api_settings.FORM_CONTENTTYPE_OVERRIDE):
return None
# Check permissions