summaryrefslogtreecommitdiff
path: root/django/http
diff options
context:
space:
mode:
Diffstat (limited to 'django/http')
-rw-r--r--django/http/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py
index 0e1c2a0fbb..20818f138b 100644
--- a/django/http/__init__.py
+++ b/django/http/__init__.py
@@ -38,11 +38,10 @@ class HttpRequest(object):
return d[key]
raise KeyError, "%s not found in either POST or GET" % key
- def __contains__(self, key):
+ def has_key(self, key):
return key in self.GET or key in self.POST
- def has_key(self, key):
- return key in self
+ __contains__ = has_key
def get_full_path(self):
return ''