summaryrefslogtreecommitdiff
path: root/django/utils/httpwrappers.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-09-27 16:33:25 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-09-27 16:33:25 +0000
commit8b67f5f829a998c860e107173584dcc4346d1225 (patch)
tree7159999921e51e645a062375d12ceed79f6b168e /django/utils/httpwrappers.py
parent2d1303bd68ee42e5c8014e2b479fc0f11cb8c08d (diff)
Fixed #567 -- Added HttpRequest.has_key() method. Thanks, wojtek3@brandlay.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@711 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/httpwrappers.py')
-rw-r--r--django/utils/httpwrappers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/httpwrappers.py b/django/utils/httpwrappers.py
index 2312891b6a..eeebda565d 100644
--- a/django/utils/httpwrappers.py
+++ b/django/utils/httpwrappers.py
@@ -20,6 +20,9 @@ class HttpRequest(object): # needs to be new-style class because subclasses defi
return d[key]
raise KeyError, "%s not found in either POST or GET" % key
+ def has_key(self, key):
+ return self.GET.has_key(key) or self.POST.has_key(key)
+
def get_full_path(self):
return ''