forms.py¶
The forms in this module can be used as a profile editing form baseclass for easy including e-mail and mobile number validation.
Class definitions:
-
class
apps.account.forms.BaseProfileEditForm(*args, **kwargs)[source]¶ Bases:
core.forms.BaseModelFormBase class profile-editing-form including (repeat) validators for mobile number and e-mail and clean method including validation logic.
Note
Does not include a fieldsets definition in the meta class, this needs to be set in the form that uses this class as baseclass.
-
class
apps.account.forms.SetPasswordForm(*args, **kwargs)[source]¶ Bases:
core.forms.BaseFormThis form class let’s users set their password after logging in automatically via the API. (Used by Healthprofessionals)
-
class
apps.account.forms.BasePasswordProfileEditForm(*args, **kwargs)[source]¶ Bases:
apps.account.forms.BaseProfileEditFormThis form class is an extension of the BaseProfileEditForm which provides change password options