summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDuncan Parkes <duncan@mysociety.org>2014-06-08 00:47:43 +0100
committerTim Graham <timograham@gmail.com>2014-06-24 22:03:22 -0400
commitfd4ccd045cf8edf0bf10ee0c576c7b7c5819170c (patch)
tree6a5573e8995b7f9abb722bb46e4dd75ff3d8add6 /docs
parentd68987ae25f0e0fb30727473803758af53d75671 (diff)
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).
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.8.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index 11b051fc70..96bcc55051 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -220,6 +220,12 @@ Requests and Responses
instantiated with ``QueryDict()`` instead of ``QueryDict(None)`` or
``QueryDict('')``.
+* The ``GET`` and ``POST`` attributes of an :class:`~django.http.HttpRequest`
+ object are now :class:`~django.http.QueryDict`\s rather than dictionaries,
+ and the ``FILES`` attribute is now a ``MultiValueDict``.
+ This brings this class into line with the documentation and with
+ ``WSGIRequest``.
+
Tests
^^^^^