feriennet.forms.userprofile
Classes
Custom userprofile form for feriennet |
Module Contents
- class feriennet.forms.userprofile.UserProfileForm(formdata: MultiDict[str, Any] | None = None, obj: object | None = None, prefix: str = '', data: dict[str, Any] | None = None, meta: dict[str, Any] | None = None, *, extra_filters: Mapping[str, Sequence[Any]] | None = None, **kwargs: Any)[source]
Bases:
onegov.form.Form
Custom userprofile form for feriennet
- extra_fields = ('salutation', 'organisation', 'address', 'zip_code', 'place', 'email', 'phone', 'website',...[source]
- populate_obj(model: onegov.user.User) None [source]
A reimplementation of wtforms populate_obj function with the addage of optional include/exclude filters.
If neither exclude nor include is passed, the function works like it does in wtforms. Otherwise fields are considered which are included but not excluded.