accounts.controllers.util module¶
Helpers for accounts.controllers
.
-
class
accounts.controllers.util.
MultiCheckboxField
(label=None, validators=None, coerce=<class 'str'>, choices=None, **kwargs)[source]¶ Bases:
wtforms.fields.core.SelectMultipleField
Multi-select with checkbox inputs.
-
option_widget
= <wtforms.widgets.core.CheckboxInput object>¶
-
widget
= <wtforms.widgets.core.ListWidget object>¶
-
-
class
accounts.controllers.util.
OptGroupSelectField
(label=None, validators=None, coerce=<class 'str'>, choices=None, **kwargs)[source]¶ Bases:
wtforms.fields.core.SelectField
A select field with optgroups.
-
pre_validate
(form)[source]¶ Don’t forget to validate also values from embedded lists.
Return type: None
-
widget
= <accounts.controllers.util.OptGroupSelectWidget object>¶
-