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

Method get_context

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

Source from the content-addressed store, hash-verified

686 return str(value)
687
688 def get_context(self, name, value, attrs):
689 if self.check_test(value):
690 attrs = {**(attrs or {}), "checked": True}
691 return super().get_context(name, value, attrs)
692
693 def value_from_datadict(self, data, files, name):
694 if name not in data:

Callers

nothing calls this directly

Calls 1

get_contextMethod · 0.45

Tested by

no test coverage detected