Authentication
Password Reset Request Form
- class ycms.cms.forms.authentication.password_reset_request_form.PasswordResetRequestForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)
Bases:
FormForm for user password resets
Form fields:
email: Email (EmailField)
- property media
Return all media required to render the widgets on this form.
Registration Form
- class ycms.cms.forms.authentication.registration_form.RegistrationForm(*args, **kwargs)
Bases:
CustomModelFormForm for user self-registration
Form fields:
personnel_id: Personnel ID (CharField)email: Email (EmailField)job_type: Job type (TypedChoiceField)first_name: First name (CharField)last_name: Last name (CharField)assigned_ward: Ward (ModelChoiceField)group: Permission group (ChoiceField)
- __init__(*args, **kwargs)
Initialize user registration form
- clean_email()
Ensure the email does not exist yet, see Overriding the clean() method: If the email is already registered, add a
ValidationError.- Returns:
The email
- Return type:
- clean_personnel_id()
Ensure the personnel_id does not exist yet, see Overriding the clean() method: If the personnel_id is already registered, add a
ValidationError.- Returns:
The personnel_id
- Return type:
- property media
Return all media required to render the widgets on this form.