hawat.blueprints.changelogs.forms module
This module contains custom item changelog search form for Hawat.
- class hawat.blueprints.changelogs.forms.ItemChangeLogDashboardForm(*args, **kwargs)[source]
Bases:
FlaskForm
Class representing item changelog dashboard search form.
- dt_from = <UnboundField(SmartDateTimeField, (l'From:',), {'validators': [<wtforms.validators.Optional object>], 'default': <function ItemChangeLogDashboardForm.<lambda>>})>
- dt_to = <UnboundField(SmartDateTimeField, (l'To:',), {'validators': [<wtforms.validators.Optional object>]})>
- submit = <UnboundField(SubmitField, (l'Calculate',), {})>
- class hawat.blueprints.changelogs.forms.ItemChangeLogSearchForm(*args, **kwargs)[source]
Bases:
BaseSearchForm
Class representing item changelog search form.
- authors = <UnboundField(QuerySelectMultipleField, (l'Authors:',), {'query_factory': <function get_available_users>, 'get_label': <function ItemChangeLogSearchForm.<lambda>>})>
- dt_from = <UnboundField(SmartDateTimeField, (l'From:',), {'validators': [<wtforms.validators.Optional object>], 'default': <function ItemChangeLogSearchForm.<lambda>>})>
- dt_to = <UnboundField(SmartDateTimeField, (l'To:',), {'validators': [<wtforms.validators.Optional object>]})>
- imodel = <UnboundField(SelectField, (l'Item model:',), {'validators': [<wtforms.validators.Optional object>], 'choices': [('', l'Nothing selected')], 'filters': [<function ItemChangeLogSearchForm.<lambda>>], 'default': ''})>
- imodel_id = <UnboundField(IntegerField, (l'Model ID:',), {'validators': [<wtforms.validators.Optional object>]})>
- static is_multivalue(field_name)[source]
Check, if given form field is a multi-value field.
- Parameters
field_name (str) – Name of the form field
- Returns
True
, if the field can contain multiple values,False
otherwise- Return type
bool
- operations = <UnboundField(SelectMultipleField, (l'Operations:',), {'validators': [<wtforms.validators.Optional object>], 'filters': [<function ItemChangeLogSearchForm.<lambda>>]})>