Skip to main content

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

AttributeTypeDescription
required_css_classstring = "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

NameTypeDescription
userUser objectThe user instance whose password is being updated by the administrator
*argstuplePositional arguments passed to the parent PasswordChangeForm
**kwargsdictKeyword arguments passed to the parent PasswordChangeForm