diff options
| author | Tom Christie | 2011-05-13 09:59:36 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-05-13 09:59:36 +0100 |
| commit | 8f6bcac7f3f156831343cc7fec79f624dcc2639f (patch) | |
| tree | ea5017ba47fdbd4410e768c5851a098eed0045d5 /djangorestframework/parsers.py | |
| parent | 44c8b89c6051483677e72a6fc657b1e0457182d1 (diff) | |
| download | django-rest-framework-8f6bcac7f3f156831343cc7fec79f624dcc2639f.tar.bz2 | |
cleanup
Diffstat (limited to 'djangorestframework/parsers.py')
| -rw-r--r-- | djangorestframework/parsers.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/djangorestframework/parsers.py b/djangorestframework/parsers.py index 9e1b971b..4337098a 100644 --- a/djangorestframework/parsers.py +++ b/djangorestframework/parsers.py @@ -111,7 +111,8 @@ class PlainTextParser(BaseParser): class FormParser(BaseParser, DataFlatener): - """The default parser for form data. + """ + The default parser for form data. Return a dict containing a single value for each non-reserved parameter. In order to handle select multiple (and having possibly more than a single value for each parameter), @@ -122,7 +123,8 @@ class FormParser(BaseParser, DataFlatener): """The value of the parameter when the select multiple is empty. Browsers are usually stripping the select multiple that have no option selected from the parameters sent. A common hack to avoid this is to send the parameter with a value specifying that the list is empty. - This value will always be stripped before the data is returned.""" + This value will always be stripped before the data is returned. + """ EMPTY_VALUE = '_empty' RESERVED_FORM_PARAMS = ('csrfmiddlewaretoken',) |
