hawat.blueprints.auth_env.forms module

This module contains custom user account registration form for Hawat.

class hawat.blueprints.auth_env.forms.RegisterUserAccountForm(*args, **kwargs)[source]

Bases: hawat.blueprints.users.forms.BaseUserAccountForm

Class representing user account registration form.

justification = <UnboundField(TextAreaField, (l'Justification:',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Length object>]})>
memberships_wanted = <UnboundField(QuerySelectMultipleField, (l'Requested group memberships:',), {'query_factory': <function get_available_groups>, 'allow_blank': True})>
hawat.blueprints.auth_env.forms.get_available_groups()[source]

Query the database for list of all available groups.