Commit 0cb5acee by Tom Christie

Merge pull request #2453 from alexsdutton/data-and-files-none-data

Pass {} as data to DataAndFiles, as it ends up in a MergeDict
parents 8f6d7f4a a1fa7218
...@@ -250,7 +250,7 @@ class FileUploadParser(BaseParser): ...@@ -250,7 +250,7 @@ class FileUploadParser(BaseParser):
None, None,
encoding) encoding)
if result is not None: if result is not None:
return DataAndFiles(None, {'file': result[1]}) return DataAndFiles({}, {'file': result[1]})
# This is the standard case. # This is the standard case.
possible_sizes = [x.chunk_size for x in upload_handlers if x.chunk_size] possible_sizes = [x.chunk_size for x in upload_handlers if x.chunk_size]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment