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.BaseModelForm

Base 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.BaseForm

This 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.BaseProfileEditForm

This form class is an extension of the BaseProfileEditForm which provides change password options

class apps.account.forms.AgreeWithRulesForm(*args, **kwargs)[source]

Bases: django.forms.forms.Form

Form which shows an ‘agree with the rules’ select box which can be used for accepting the rules for using the application.