From d89f0411392692d4b69f613d053a2affe30acec6 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 30 Nov 2005 04:13:21 +0000 Subject: [PATCH] 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 --- django/utils/httpwrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/httpwrappers.py b/django/utils/httpwrappers.py index 32f2bfb8f7..6a64592eaa 100644 --- a/django/utils/httpwrappers.py +++ b/django/utils/httpwrappers.py @@ -69,7 +69,7 @@ class QueryDict(MultiValueDict): def __init__(self, query_string): MultiValueDict.__init__(self) 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._mutable = False