Skip to main content

AdminIntegerFieldWidget

This class provides a specialized numeric input widget for integer fields within the administrative interface. It automatically applies a specific CSS class to the rendered HTML element to ensure consistent styling and behavior. The widget inherits from the standard number input form field while allowing for additional custom attributes.

Attributes

AttributeTypeDescription
class_namestring = vIntegerFieldThe CSS class name applied to the HTML input element for styling and identification within the Django admin interface.

Constructor

Signature

def AdminIntegerFieldWidget(
attrs: dict = None
) - > null

Parameters

NameTypeDescription
attrsdict = NoneA dictionary of HTML attributes to be added to the rendered widget.

Signature

def AdminIntegerFieldWidget(
attrs: dict = None
) - > null

Parameters

NameTypeDescription
attrsdict = NoneA dictionary of HTML attributes to be applied to the rendered input element.