#30735: Testing client encode_multipart may also support dict format.
-------------------------------------+-------------------------------------
Reporter: Yannick Chabbert | Owner: Yannick
| Chabbert
Type: New feature | Status: closed
Component: Testing framework | Version: master
Severity: Normal | Resolution: wontfix
Keywords: test | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Yannick Chabbert):
Ok, I can confirm that it work because this is an expected behavior in
DRF.
Request is first parsed by the Django {{{MutiPartParser}}} which just
extract the raw json string:
https://github.com/django/django/blob/master/django/http/multipartparser.py#L196
It is then handled by the corresponding serializer field (DRF) by
implementing the {{to_internal_value}} method.
RFC compliant or not (I still didn't know but finally, a string is a
string, no matter what it contains!), this is not an issue with Django and
sorry for the bad report!
--
Ticket URL: <https://code.djangoproject.com/ticket/30735#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.d924da49c69a5dedc0c29558175773dd%40djangoproject.com.