MCPcopy
hub / github.com/django/django / update

Method update

django/template/context.py:170–176  ·  view source on GitHub ↗

Push other_dict to the stack of dictionaries in the Context

(self, other_dict)

Source from the content-addressed store, hash-verified

168 return duplicate
169
170 def update(self, other_dict):
171 "Push other_dict to the stack of dictionaries in the Context"
172 if not hasattr(other_dict, "__getitem__"):
173 raise TypeError("other_dict must be a mapping (dictionary-like) object.")
174 if isinstance(other_dict, BaseContext):
175 other_dict = other_dict.dicts[1:].pop()
176 return ContextDict(self, other_dict)
177
178
179class RenderContext(BaseContext):

Callers 15

submit_rowFunction · 0.95
directory_indexFunction · 0.95
test_contextlist_keysMethod · 0.95
test_flatten_contextMethod · 0.95
_add_new_csrf_cookieFunction · 0.45
renderMethod · 0.45
__init__Method · 0.45
genericMethod · 0.45

Calls 2

ContextDictClass · 0.85
popMethod · 0.45