Ticket #5138: HttpRequest-contains.patch
File HttpRequest-contains.patch, 533 bytes (added by , 17 years ago) |
---|
-
django/http/__init__.py
38 38 return d[key] 39 39 raise KeyError, "%s not found in either POST or GET" % key 40 40 41 def has_key(self, key):41 def __contains__(self, key): 42 42 return key in self.GET or key in self.POST 43 43 44 def has_key(self, key): 45 return key in self 46 44 47 def get_full_path(self): 45 48 return '' 46 49