MCPcopy
hub / github.com/django/django / ContextDict

Class ContextDict

django/template/context.py:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14class ContextDict(dict):
15 def __init__(self, context, *args, **kwargs):
16 super().__init__(*args, **kwargs)
17
18 context.dicts.append(self)
19 self.context = context
20
21 def __enter__(self):
22 return self
23
24 def __exit__(self, *args, **kwargs):
25 self.context.pop()
26
27
28class BaseContext:

Callers 2

pushMethod · 0.85
updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected