aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/parsers.py
diff options
context:
space:
mode:
authorGitHub Merge Button2011-07-02 10:16:47 -0700
committerGitHub Merge Button2011-07-02 10:16:47 -0700
commitf168ac99382512bd915bbfb7d119a9f8ec7eb429 (patch)
treecc4b931316fa76fe5dfc75ee66c315e2b29089db /djangorestframework/parsers.py
parent1885012d61c7ba78e78648ef2bff89e4337c0407 (diff)
parent20c7e605c987bbfec23fbd305e71168b21672bec (diff)
downloaddjango-rest-framework-f168ac99382512bd915bbfb7d119a9f8ec7eb429.tar.bz2
Merge 20c7e605c987bbfec23fbd305e71168b21672bec into 1885012d61c7ba78e78648ef2bff89e4337c0407
Diffstat (limited to 'djangorestframework/parsers.py')
-rw-r--r--djangorestframework/parsers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/djangorestframework/parsers.py b/djangorestframework/parsers.py
index 5f19c521..168d391e 100644
--- a/djangorestframework/parsers.py
+++ b/djangorestframework/parsers.py
@@ -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,)