Skip to main content

AdminDateWidget

This class provides a specialized date input widget for the administrative interface, utilizing a specific HTML template for rendering. It inherits core date-handling functionality from the base administrative date widget to ensure consistent data processing and display.

Attributes

AttributeTypeDescription
template_namestring = admin/widgets/date.htmlThe path to the HTML template used to render the date input widget in the admin interface.

Constructor

Signature

def AdminDateWidget() - > null

Signature

def AdminDateWidget(
attrs: dict = null,
format: string = null
) - > null

Parameters

NameTypeDescription
attrsdict = nullOptional dictionary of HTML attributes to be added to the rendered input element.
formatstring = nullThe date format string used to display the value in the input field.