id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 5138 Add __contains__ to HttpRequest to make it more dict-like anonymous nobody "If I try to evaluate the view method {{{ def index(request): if 'foo' in request: ... }}} I the error ""0 not found in either POST or GET."" Adding the following method to HttpRequest {{{ def __contains__(self, key): return self.has_key(key) }}} fixes that problem. Please add that method to make the request behavior more {{{dict}}}-like. " closed Uncategorized dev fixed Design decision needed 1 0 0 0 0 0