MCPcopy Create free account
hub / github.com/django/django / get_context

Method get_context

django/forms/widgets.py:407–410  ·  view source on GitHub ↗
(self, name, value, attrs)

Source from the content-addressed store, hash-verified

405 super().__init__(attrs)
406
407 def get_context(self, name, value, attrs):
408 context = super().get_context(name, value, attrs)
409 context["widget"]["type"] = self.input_type
410 return context
411
412
413class TextInput(Input):

Callers 14

get_contextMethod · 0.45
get_contextMethod · 0.45
get_contextMethod · 0.45
get_contextMethod · 0.45
get_contextMethod · 0.45
get_contextMethod · 0.45
get_contextMethod · 0.45
get_contextMethod · 0.45
test_get_contextMethod · 0.45

Calls

no outgoing calls