Skip to main content

ReadOnlyPasswordHashField

This class provides a read-only form field specifically designed for displaying password hashes without allowing direct modification. It automatically configures itself to be non-required and disabled, utilizing a specialized widget to present the hash information securely within a user interface.

Attributes

AttributeTypeDescription
widgetdjango.forms.widgets.Widget = ReadOnlyPasswordHashWidgetThe form widget class used to render the read-only password hash display.

Constructor

Signature

def ReadOnlyPasswordHashField(
*args: any,
**kwargs: any
) - > null

Parameters

NameTypeDescription
*argsanyVariable length argument list passed to the parent form field constructor.
**kwargsanyArbitrary keyword arguments, with 'required' defaulting to False and 'disabled' defaulting to True.

Signature

def ReadOnlyPasswordHashField(
*args: tuple,
**kwargs: dict
) - > null

Parameters

NameTypeDescription
*argstupleVariable length argument list passed to the parent forms.Field constructor
**kwargsdictArbitrary keyword arguments used to configure the field, with 'required' defaulting to False and 'disabled' defaulting to True