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
| Attribute | Type | Description |
|---|---|---|
| class_name | string = vIntegerField | The 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
| Name | Type | Description |
|---|---|---|
| attrs | dict = None | A dictionary of HTML attributes to be added to the rendered widget. |
Signature
def AdminIntegerFieldWidget(
attrs: dict = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| attrs | dict = None | A dictionary of HTML attributes to be applied to the rendered input element. |