Form ==== Describe a Form. Example: .. code:: python class MyForm(Form): a = Field() b = Field.email() form = MyForm(data={}) You can also create an instance of a form with this syntax if it's more convenient: .. code:: python form = MyForm(data={}, fields=[Field(name='a'), Field.email(name='b')]) See tri.declarative docs for more on this dual style of declaration. :type fields: list of Field :type data: dict[basestring, any] :type model: django.db.models.Model Refinable members ----------------- * `actions` * `actions_template` * `attrs` * `base_template` * `editable` * `endpoint` * `endpoint_dispatch_prefix` * `extra` * `field` * `is_full_form` * `links` * `links_template` * `member_class` * `model` * `name` * `post_validation` Defaults ^^^^^^^^ * `actions__submit__call_target` * `tri_form.submit` * `actions_template` * `tri_form/actions.html` * `attrs__action` * `""` * `attrs__method` * `post` * `editable` * `True` * `endpoint__field` * `tri_form.default_endpoint__field` * `is_full_form` * `True` * `links_template` * `tri_form/links.html`