Fixed bug in QueryDict parse_sql() call under mod_python, which requires query_string to be an empty string, not None
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
991bb61242
commit
d89f041139
|
@ -69,7 +69,7 @@ class QueryDict(MultiValueDict):
|
||||||
def __init__(self, query_string):
|
def __init__(self, query_string):
|
||||||
MultiValueDict.__init__(self)
|
MultiValueDict.__init__(self)
|
||||||
self._mutable = True
|
self._mutable = True
|
||||||
for key, value in parse_qsl(query_string, True): # keep_blank_values=True
|
for key, value in parse_qsl((query_string or ''), True): # keep_blank_values=True
|
||||||
self.appendlist(key, value)
|
self.appendlist(key, value)
|
||||||
self._mutable = False
|
self._mutable = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue