class documentation

class ClearableFileInput(FileInput):

Known subclasses: django.contrib.admin.widgets.AdminFileWidget

View In Hierarchy

Undocumented

Method clear​_checkbox​_id Given the name of the clear checkbox input, return the HTML id for it.
Method clear​_checkbox​_name Given the name of the file input, return the name of the clear checkbox input.
Method format​_value Return the file object if it has a defined url attribute.
Method get​_context Undocumented
Method is​_initial Return whether value is considered to be initial value.
Method value​_from​_datadict File widgets take data from FILES, not POST
Method value​_omitted​_from​_data Undocumented
Class Variable clear​_checkbox​_label Undocumented
Class Variable initial​_text Undocumented
Class Variable input​_text Undocumented
Class Variable template​_name Undocumented

Inherited from FileInput:

Method use​_required​_attribute Undocumented
Class Variable input​_type Undocumented
Class Variable needs​_multipart​_form Undocumented

Inherited from Input (via FileInput):

Method __init__ Undocumented

Inherited from Widget (via FileInput, Input):

Method __deepcopy__ Undocumented
Method ​_render Undocumented
Method build​_attrs Build an attribute dictionary.
Method id​_for​_label Return the HTML ID attribute of this Widget for use by a <label>, given the ID of the field. Return None if no ID is available.
Method render Render the widget as an HTML string.
Method subwidgets Undocumented
Class Variable is​_localized Undocumented
Class Variable is​_required Undocumented
Class Variable supports​_microseconds Undocumented
Instance Variable attrs Undocumented
Property is​_hidden Undocumented
def clear_checkbox_id(self, name):
Given the name of the clear checkbox input, return the HTML id for it.
def clear_checkbox_name(self, name):
Given the name of the file input, return the name of the clear checkbox input.
def format_value(self, value):
Return the file object if it has a defined url attribute.
def get_context(self, name, value, attrs):
def is_initial(self, value):
Return whether value is considered to be initial value.
def value_from_datadict(self, data, files, name):
File widgets take data from FILES, not POST
def value_omitted_from_data(self, data, files, name):
clear_checkbox_label =

Undocumented

initial_text =

Undocumented

input_text =

Undocumented