|
|
__init__(self,
data=None,
files=None,
auto_id='id_%s',
prefix=None,
initial=None,
error_class=<class 'django.newforms.util.ErrorList'>,
label_suffix=':')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
__getitem__(self,
name)
Returns a BoundField with the given name. |
source code
|
|
|
|
_get_errors(self)
Returns an ErrorDict for the data provided for the form |
source code
|
|
|
|
|
|
|
add_prefix(self,
field_name)
Returns the field name with a prefix appended, if this Form has a
prefix set. |
source code
|
|
|
|
_html_output(self,
normal_row,
error_row,
row_ender,
help_text_html,
errors_on_separate_row)
Helper function for outputting HTML. |
source code
|
|
|
|
as_table(self)
Returns this form rendered as HTML <tr>s -- excluding the
<table></table>. |
source code
|
|
|
|
as_ul(self)
Returns this form rendered as HTML <li>s -- excluding the
<ul></ul>. |
source code
|
|
|
|
as_p(self)
Returns this form rendered as HTML <p>s. |
source code
|
|
|
|
non_field_errors(self)
Returns an ErrorList of errors that aren't associated with a
particular field -- i.e., from Form.clean(). |
source code
|
|
|
|
full_clean(self)
Cleans all of self.data and populates self._errors and
self.cleaned_data. |
source code
|
|
|
|
clean(self)
Hook for doing any extra form-wide cleaning after Field.clean() been
called on every field. |
source code
|
|
|
|
|
|
Inherited from utils.encoding.StrAndUnicode:
__str__
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
|