MCPcopy
hub / github.com/django/django / as_hidden

Method as_hidden

django/forms/boundfield.py:126–131  ·  view source on GitHub ↗

Return a string of HTML for representing this as an <input type="hidden">.

(self, attrs=None, **kwargs)

Source from the content-addressed store, hash-verified

124 return self.as_widget(Textarea(), attrs, **kwargs)
125
126 def as_hidden(self, attrs=None, **kwargs):
127 """
128 Return a string of HTML for representing this as an
129 <input type="hidden">.
130 """
131 return self.as_widget(self.field.hidden_widget(), attrs, **kwargs)
132
133 @property
134 def data(self):

Callers 3

test_form_fieldMethod · 0.45
test_widget_outputMethod · 0.45
test_hidden_dataMethod · 0.45

Calls 1

as_widgetMethod · 0.95

Tested by 3

test_form_fieldMethod · 0.36
test_widget_outputMethod · 0.36
test_hidden_dataMethod · 0.36