Skip to main content

AdminUserCreationForm

This class provides a specialized form for creating new users within the administrative interface. It extends the standard user creation functionality by allowing the creation of users without an initial password through the integration of a mixin that manages unusable password states. The form modifies default password field requirements to support flexible account initialization workflows.

Attributes

AttributeTypeDescription
usable_passworddjango.forms.BooleanFieldA boolean form field that determines whether the user should be created with a usable password or an unusable one.

Constructor

Signature

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

Parameters

NameTypeDescription
*argsanyVariable length argument list.
**kwargsanyArbitrary keyword arguments.

Signature

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

Parameters

NameTypeDescription
*argstupleVariable length argument list passed to the parent UserCreationForm constructor.
**kwargsdictArbitrary keyword arguments passed to the parent UserCreationForm constructor, typically containing initial data or instance information.