MCPcopy
hub / github.com/django/django / new

Method new

django/template/context.py:281–287  ·  view source on GitHub ↗
(self, values=None)

Source from the content-addressed store, hash-verified

279 self.dicts[self._processors_index] = {}
280
281 def new(self, values=None):
282 new_context = super().new(values)
283 # This is for backwards-compatibility: RequestContexts created via
284 # Context.new don't include values from context processors.
285 if hasattr(new_context, "_processors_index"):
286 del new_context._processors_index
287 return new_context
288
289
290def make_context(context, request=None, **kwargs):

Callers

nothing calls this directly

Calls 1

newMethod · 0.45

Tested by

no test coverage detected