diff options
| author | Duncan Parkes <duncan@mysociety.org> | 2014-06-24 22:01:39 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-06-24 22:02:03 -0400 |
| commit | d68987ae25f0e0fb30727473803758af53d75671 (patch) | |
| tree | 931928054dab11e18e9e57333fca1b1830134854 /django/http/request.py | |
| parent | 7f4e2ef1e9e9f5c86217ccf9ac97391291a9d422 (diff) | |
Fixed #22897 -- Made QueryDict query_string argument optional.
Now QueryDict() is equivalent to QueryDict('') or QueryDict(None).
Diffstat (limited to 'django/http/request.py')
| -rw-r--r-- | django/http/request.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/request.py b/django/http/request.py index 097bcff310..e5e4c51114 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -317,7 +317,7 @@ class QueryDict(MultiValueDict): _mutable = True _encoding = None - def __init__(self, query_string, mutable=False, encoding=None): + def __init__(self, query_string=None, mutable=False, encoding=None): super(QueryDict, self).__init__() if not encoding: encoding = settings.DEFAULT_CHARSET |
