Commit 06177b8d by Alen Mujezinovic

`bound_form.cleaned_data` already returns the file data if there was any.

`bound_form.files` returns a `MultiValueDict` which errors when passing
`.CONTENT` into a model constructor.
parent d034c0fe
...@@ -247,8 +247,6 @@ class FormResource(Resource): ...@@ -247,8 +247,6 @@ class FormResource(Resource):
# Validation succeeded... # Validation succeeded...
cleaned_data = bound_form.cleaned_data cleaned_data = bound_form.cleaned_data
cleaned_data.update(bound_form.files)
# Add in any extra fields to the cleaned content... # Add in any extra fields to the cleaned content...
for key in (allowed_extra_fields_set & seen_fields_set) - set(cleaned_data.keys()): for key in (allowed_extra_fields_set & seen_fields_set) - set(cleaned_data.keys()):
cleaned_data[key] = data[key] cleaned_data[key] = data[key]
......
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