Skip to main content

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

AttributeTypeDescription
template_namestring = "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

NameTypeDescription
attrsdict = nullA dictionary containing HTML attributes to be added to the rendered widget input element.
formatstr = nullThe specific time formatting string used to display the value in the input field.