AdminPasswordChangeForm
This class provides a specialized form for administrators to change a user's password without requiring the user's current password. It extends the standard password change functionality and includes a specific CSS class for required fields.
Attributes
| Attribute | Type | Description |
|---|---|---|
| required_css_class | string = "required" | CSS class name applied to form field labels that are mandatory to fill out. |
Constructor
Signature
def AdminPasswordChangeForm()
Signature
def AdminPasswordChangeForm(
user: User object,
*args: tuple,
**kwargs: dict
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| user | User object | The user instance whose password is being updated by the administrator |
| *args | tuple | Positional arguments passed to the parent PasswordChangeForm |
| **kwargs | dict | Keyword arguments passed to the parent PasswordChangeForm |