Skip to content
Browse files

Fixed #3071 -- added a {{{__contains__}}} method to the Context class…

…. Thanks


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d8deb0c commit 4d75c7aa6ef7a477697fbe06658d8bd5ab2d0250 @malcolmt malcolmt committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 django/template/
3 django/template/
@@ -49,6 +49,9 @@ def has_key(self, key):
return True
return False
+ def __contains__(self, key):
+ return self.has_key(key)
def get(self, key, otherwise=None):
for d in self.dicts:
if d.has_key(key):

0 comments on commit 4d75c7a

Please sign in to comment.
Something went wrong with that request. Please try again.