I've made a pull request to change this:
https://github.com/django/django/pull/2778
--
Ticket URL: <https://code.djangoproject.com/ticket/22799>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* type: Uncategorized => Bug
* needs_tests: => 0
* needs_better_patch: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/22799#comment:1>
* needs_better_patch: 0 => 1
* needs_docs: 0 => 1
* type: Bug => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Hi,
This seems like a reasonable feature to add.
I've left a comment on the pull request and on top of that, you should
also add a mention in the release notes for 1.8.
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/22799#comment:2>
* owner: nobody => duncan
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/22799#comment:3>
Comment (by duncan):
I've updated the pull request in line with bmispelon's suggestions, let me
know if there is anything else you need.
Cheers,
Duncan
--
Ticket URL: <https://code.djangoproject.com/ticket/22799#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"fd4ccd045cf8edf0bf10ee0c576c7b7c5819170c"]:
{{{
#!CommitTicketReference repository=""
revision="fd4ccd045cf8edf0bf10ee0c576c7b7c5819170c"
Fixed #22799 -- Made GET and POST on HttpRequest QueryDicts, and FILES a
MultiValueDict.
Previously, GET, POST, and FILES on an HttpRequest were created in
the __init__ method as dictionaries. This was not something you would
usually notice causing trouble in production as you'd only see a
WSGIRequest, but in testing using the test client, calling .getlist
on GET, POST, or FILES for a request with no get/post data resulted in
an AttributeError.
Changed GET and POST on an HttpRequest object to be mutable
QueryDicts (mutable because the Django tests, and probably many
third party tests, were expecting it).
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22799#comment:5>