Commit f168ac99 by GitHub Merge Button

Merge 20c7e605 into 1885012d

parents 1885012d 20c7e605
......@@ -21,3 +21,4 @@ MANIFEST
.coverage
.tox
.DS_Store
.idea/*
\ No newline at end of file
......@@ -167,3 +167,9 @@ class MultiPartParser(BaseParser):
{'detail': 'multipart parse error - %s' % unicode(exc)})
return django_parser.parse()
DEFAULT_PARSERS = ( JSONParser,
FormParser,
MultiPartParser )
if YAMLParser:
DEFAULT_PARSERS += (YAMLParser,)
......@@ -44,9 +44,7 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
"""
List of parsers the resource can parse the request with.
"""
parsers = ( parsers.JSONParser,
parsers.FormParser,
parsers.MultiPartParser )
parsers = parsers.DEFAULT_PARSERS
"""
List of all authenticating methods to attempt.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment