TestClient serialization of GET params with empty list as value
|Reported by:||code.djangoproject.com@…||Owned by:||nobody|
|Cc:||gregchapple1@…, apollo13||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
When POST-ing a parameter whose value is the empty list, TestClient will strip that param-value pair out of the request entirely. In contrast to GET, which passes these along.
They should work the same in the face of an empty list value.
See: https://github.com/django/django/pull/2268 for a patch making POST behave as GET.
Change History (5)
comment:1 Changed 18 months ago by aaugustin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted