Skip to main content

AdminFileWidget

This class provides a specialized clearable file input widget designed for use within the administrative interface. It utilizes a specific HTML template and enables fieldset rendering to ensure consistent styling and layout for file uploads.

Attributes

AttributeTypeDescription
template_namestring = admin/widgets/clearable_file_input.htmlThe path to the HTML template used to render the file input widget in the admin interface.
use_fieldsetboolean = trueA boolean flag indicating whether the widget should be wrapped in a fieldset element for improved accessibility and grouping.

Constructor

Signature

def AdminFileWidget() - > null

Signature

def AdminFileWidget() - > null