|
|
__init__(self,
form,
field,
name)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
__unicode__(self)
Renders this field as an HTML widget. |
source code
|
|
|
|
|
|
|
as_widget(self,
widget=None,
attrs=None)
Renders the field by rendering the passed widget, adding any HTML
attributes passed as attrs. |
source code
|
|
|
|
as_text(self,
attrs=None)
Returns a string of HTML for representing this as an <input
type="text">. |
source code
|
|
|
|
as_textarea(self,
attrs=None)
Returns a string of HTML for representing this as a <textarea>. |
source code
|
|
|
|
as_hidden(self,
attrs=None)
Returns a string of HTML for representing this as an <input
type="hidden">. |
source code
|
|
|
|
_data(self)
Returns the data for this BoundField, or None if it wasn't given. |
source code
|
|
|
|
label_tag(self,
contents=None,
attrs=None)
Wraps the given contents in a <label>, if the field has an ID
attribute. |
source code
|
|
|
|
_is_hidden(self)
Returns True if this BoundField's widget is hidden. |
source code
|
|
|
|
_auto_id(self)
Calculates and returns the ID attribute for this BoundField, if the
associated Form has specified auto_id. |
source code
|
|
|
Inherited from utils.encoding.StrAndUnicode:
__str__
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
|