Changeset 8181
- Timestamp:
- 08/01/08 16:37:38 (4 months ago)
- Files:
-
- django/trunk/django/template/context.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/template/context.py
r6975 r8181 63 63 def update(self, other_dict): 64 64 "Like dict.update(). Pushes an entire dictionary's keys and values onto the context." 65 if not hasattr(other_dict, '__getitem__'): 66 raise TypeError('other_dict must be a mapping (dictionary-like) object.') 65 67 self.dicts = [other_dict] + self.dicts 66 68 return other_dict
