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:
committed by
Tim Graham
parent
7f4e2ef1e9
commit
d68987ae25
@@ -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
|
||||
^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user