Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Corrected documentation on the constructor arguments of MultiPartParser

  • Loading branch information...
commit c278e56bafc8b2740f01e53fc5ce3650806c04ad 1 parent f54a888
@hydrogen18 hydrogen18 authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 django/http/
11 django/http/
@@ -48,9 +48,9 @@ def __init__(self, META, input_data, upload_handlers, encoding=None):
The standard ``META`` dictionary in Django request objects.
The raw post data, as a file-like object.
- :upload_handler:
- An UploadHandler instance that performs operations on the uploaded
- data.
+ :upload_handlers:
+ A list of UploadHandler instances that perform operations on the uploaded
+ data.
The encoding with which to treat the incoming data.
@@ -113,14 +113,15 @@ def parse(self):
if self._content_length == 0:
return QueryDict('', encoding=self._encoding), MultiValueDict()
- # See if the handler will want to take care of the parsing.
- # This allows overriding everything if somebody wants it.
+ # See if any of the handlers take care of the parsing.
+ # This allows overriding everything if need be.
for handler in handlers:
result = handler.handle_raw_input(self._input_data,
+ #Check to see if it was handled
if result is not None:
return result[0], result[1]

0 comments on commit c278e56

Please sign in to comment.
Something went wrong with that request. Please try again.