diff options
| author | tom christie tom@tomchristie.com | 2011-02-15 08:19:57 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-02-15 08:19:57 +0000 |
| commit | b749b950a1b4bede76b7e3900a6385779904902d (patch) | |
| tree | cc61f2f271bf5203ede652c1f15b0c9a50dc2f3b /djangorestframework/parsers.py | |
| parent | 027ffed21064b1ec304a1ea559104382313d76f4 (diff) | |
| download | django-rest-framework-b749b950a1b4bede76b7e3900a6385779904902d.tar.bz2 | |
Added credits, fixed multipart forms and unicode output as per paul's bug reports.
Diffstat (limited to 'djangorestframework/parsers.py')
| -rw-r--r-- | djangorestframework/parsers.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/djangorestframework/parsers.py b/djangorestframework/parsers.py index 0d5121e9..f48f2f59 100644 --- a/djangorestframework/parsers.py +++ b/djangorestframework/parsers.py @@ -118,3 +118,12 @@ class FormParser(BaseParser): return data +# TODO: Allow parsers to specify multiple media types +class MultipartParser(FormParser): + """The default parser for multipart form data. + Return a dict containing a single value for each non-reserved parameter. + """ + + media_type = 'multipart/form-data' + + |
