Django multipart parser creates mutable QueryDict
|Reported by:||k_bx||Owned by:||fred|
|Cc:||k_bx, fred||Triage Stage:||Accepted|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When you send multipart request (which, unfortunately, is sent every time your testclient does POST-request https://code.djangoproject.com/ticket/18552 ), your view will get request.POST to be QueryDict with request.POST._mutable == True.
This caused me to write test that passes (sends POST-request and modifies request.POST in view), but production that fails.
Change History (5)
comment:4 Changed 4 years ago by
|Owner:||changed from nobody to fred|
|Status:||new → assigned|