Django

Code

Changeset 4480

Show
Ignore:
Timestamp:
02/10/07 03:02:00 (2 years ago)
Author:
mtredinnick
Message:

Fixed #3071 -- added a __contains__ method to the Context class. Thanks
akaihola.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/template/context.py

    r4265 r4480  
    5050        return False 
    5151 
     52    def __contains__(self, key): 
     53        return self.has_key(key) 
     54 
    5255    def get(self, key, otherwise=None): 
    5356        for d in self.dicts: