1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #22897 -- Made QueryDict query_string argument optional.

Now QueryDict() is equivalent to QueryDict('') or QueryDict(None).
This commit is contained in:
Duncan Parkes
2014-06-24 22:01:39 -04:00
committed by Tim Graham
parent 7f4e2ef1e9
commit d68987ae25
4 changed files with 28 additions and 13 deletions

View File

@@ -215,6 +215,11 @@ Requests and Responses
:exc:`~django.core.exceptions.SuspiciousOperation`, the response will be
rendered with a detailed error page.
* The ``query_string`` argument of :class:`~django.http.QueryDict` is now
optional, defaulting to ``None``, so a blank ``QueryDict`` can now be
instantiated with ``QueryDict()`` instead of ``QueryDict(None)`` or
``QueryDict('')``.
Tests
^^^^^