mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
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.
This commit is contained in:
parent
d034c0fe4f
commit
06177b8d4b
|
@ -247,8 +247,6 @@ class FormResource(Resource):
|
|||
# Validation succeeded...
|
||||
cleaned_data = bound_form.cleaned_data
|
||||
|
||||
cleaned_data.update(bound_form.files)
|
||||
|
||||
# Add in any extra fields to the cleaned content...
|
||||
for key in (allowed_extra_fields_set & seen_fields_set) - set(cleaned_data.keys()):
|
||||
cleaned_data[key] = data[key]
|
||||
|
|
Loading…
Reference in New Issue
Block a user