AdminTimeWidget
This class provides a specialized time input widget for the administrative interface, utilizing a specific HTML template for rendering. It extends the base administrative time widget functionality to ensure consistent styling and behavior within admin forms.
Attributes
| Attribute | Type | Description |
|---|---|---|
| template_name | string = "admin/widgets/time.html" | Path to the HTML template used to render the time input widget in the Django admin interface. |
Constructor
Signature
def AdminTimeWidget() - > null
Signature
def AdminTimeWidget(
attrs: dict = null,
format: str = null
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| attrs | dict = null | A dictionary containing HTML attributes to be added to the rendered widget input element. |
| format | str = null | The specific time formatting string used to display the value in the input field. |