diff options
| author | Tom Christie | 2011-06-10 15:59:35 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-06-10 15:59:35 +0100 |
| commit | d1beedadbd984074e05782bc79d113a8d3dfba4c (patch) | |
| tree | 9ae88685d9fd61d231c8f222ea0323ee75f0a476 /djangorestframework/parsers.py | |
| parent | 88a3e55ed47635077b9d05513f945adff7972b61 (diff) | |
| parent | 06177b8d4b77bcfe7d945d2a593ab3458c8fa528 (diff) | |
| download | django-rest-framework-d1beedadbd984074e05782bc79d113a8d3dfba4c.tar.bz2 | |
Merge flashingpumpkin's fix
Diffstat (limited to 'djangorestframework/parsers.py')
| -rw-r--r-- | djangorestframework/parsers.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/djangorestframework/parsers.py b/djangorestframework/parsers.py index 726e09e9..3346a26e 100644 --- a/djangorestframework/parsers.py +++ b/djangorestframework/parsers.py @@ -11,12 +11,11 @@ We need a method to be able to: and multipart/form-data. (eg also handle multipart/json) """ +from django.http import QueryDict from django.http.multipartparser import MultiPartParser as DjangoMultiPartParser from django.utils import simplejson as json from djangorestframework import status -from djangorestframework.compat import parse_qs from djangorestframework.response import ErrorResponse -from djangorestframework.utils import as_tuple from djangorestframework.utils.mediatypes import media_type_matches __all__ = ( @@ -117,7 +116,7 @@ class FormParser(BaseParser): `data` will be a :class:`QueryDict` containing all the form parameters. `files` will always be :const:`None`. """ - data = parse_qs(stream.read(), keep_blank_values=True) + data = QueryDict(stream.read()) return (data, None) |
