form.submissions

Attributes

_FormT

Functions

prepare_for_submission(→ type[_FormT])

get_fields(…)

Takes an unbound form and returns the name of the fields

Module Contents

form.submissions._FormT[source]
form.submissions.prepare_for_submission(form_class: type[_FormT], for_change_request: bool = False, force_simple: bool = True) type[_FormT][source]
form.submissions.get_fields(form_class: type[onegov.form.Form], names_only: Literal[False] = False, exclude: Collection[str] | None = None) Iterator[tuple[str, UnboundField[Any]]][source]
form.submissions.get_fields(form_class: type[onegov.form.Form], names_only: Literal[True], exclude: Collection[str] | None = None) Iterator[str]

Takes an unbound form and returns the name of the fields