#22799: GET and POST on HttpRequest should be QueryDicts
-------------------------------+--------------------
Reporter: duncan@… | Owner: nobody
Type: Uncategorized | Status: new
Component: HTTP handling | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
On a new HttpRequest object, GET and POST are are empty dictionaries when
they really ought to be QueryDicts. This is not something you would
usually notice causing trouble in production as you get a WSGIRequest
instead of an HttpRequest, but in testing using the test client, calling
.getlist on GET or POST for a request with no get/post data results in an
AttributeError.
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.
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.41d4eef31b98eee0eab76c6e6290115e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.