diff options
| author | Jens Alm | 2011-07-02 19:03:26 +0200 |
|---|---|---|
| committer | Jens Alm | 2011-07-02 19:03:26 +0200 |
| commit | f73588eb425f611cb79c7a56133690328739bf6c (patch) | |
| tree | 0a55eff1a43ae628f835af04f445042f8d2150f4 /djangorestframework/parsers.py | |
| parent | 1885012d61c7ba78e78648ef2bff89e4337c0407 (diff) | |
| download | django-rest-framework-f73588eb425f611cb79c7a56133690328739bf6c.tar.bz2 | |
parsers.DEFAULT_PARSERS added to be consistent with renderers.DEFAULT_RENDERERS
Diffstat (limited to 'djangorestframework/parsers.py')
| -rw-r--r-- | djangorestframework/parsers.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/djangorestframework/parsers.py b/djangorestframework/parsers.py index 5f19c521..f4c8dcb4 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 = ( parsers.JSONParser, + parsers.FormParser, + parsers.MultiPartParser ) + +if YAMLParser: + DEFAULT_PARSERS += (YAMLParser,) |
