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

Method new

django/template/context.py:113–120  ·  view source on GitHub ↗

Return a new context with the same properties, but with only the values given in 'values' stored.

(self, values=None)

Source from the content-addressed store, hash-verified

111 return default
112
113 def new(self, values=None):
114 """
115 Return a new context with the same properties, but with only the
116 values given in 'values' stored.
117 """
118 new_context = copy(self)
119 new_context._reset_dicts(values)
120 return new_context
121
122 def flatten(self):
123 """

Callers 5

salted_hmacFunction · 0.45
_hash_textMethod · 0.45
newMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45

Calls 1

_reset_dictsMethod · 0.80

Tested by

no test coverage detected