Module ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Str ClassDef bases body Assign NameStore TupleLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Dict Str Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq NameLoad Str body Return Call NameLoad AttributeLoad NameLoad attr NameLoad Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareEq NameLoad AttributeLoad NameLoad attr keyword Dict Str NameLoad Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list If CompareLt NameLoad TupleLoad Num Num body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad BoolOpAnd CompareIsNot NameLoad NameLoad CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpAdd NameLoad Str decorator_list decorator_list
N/A __future__ unicode_literals django VERSION django.forms.widgets Media Widget CheckboxInput django.utils.html conditional_escape django.utils.safestring mark_safe django.utils.translation ugettext_lazy _ ClearableWidgetWrapper N/A Widget N/A N/A 
    Wraps another widget adding a clear checkbox, making it possible to
    reset the field to some empty value even if the original input doesn't
    have means to.

    Useful for ``TextInput`` and ``Textarea`` based widgets used in combination
    with nullable text fields.

    Use it in ``Field.formfield`` or ``ModelAdmin.formfield_for_dbfield``:

        field.widget = ClearableWidgetWrapper(field.widget)

    ``None`` is assumed to be a proper choice for the empty value, but you may
    pass another one to the constructor.
     N/A clear_checkbox_label N/A _ None N/A template <span class="clearable-input">{0} <span>{2}</span> {3}</span> Media N/A N/A N/A js N/A modeltranslation/js/clearable_inputs.js N/A __init__ N/A N/A self widget empty_value N/A None N/A N/A 
        Remebers the widget we are wrapping and precreates a checkbox input.
        Allows overriding the empty value.
         N/A N/A self widget widget N/A N/A self checkbox N/A CheckboxInput attrs N/A tabindex -1 N/A N/A self empty_value empty_value N/A __getattr__ N/A N/A self name N/A N/A N/A 
        If we don't have a property or a method, chances are the wrapped
        widget does.
         N/A N/A name widget N/A N/A N/A getattr N/A self widget name N/A AttributeError N/A media N/A N/A self N/A N/A N/A 
        Combines media of both components and adds a small script that unchecks
        the clear box, when a value in any wrapped input is modified.
         N/A N/A N/A N/A N/A self widget media N/A N/A self checkbox media N/A Media N/A self Media N/A property render N/A N/A self name value attrs N/A None N/A N/A 
        Appends a checkbox for clearing the value (that is, setting the field
        with the ``empty_value``).
         N/A wrapped N/A N/A N/A self widget render name value attrs N/A checkbox_name N/A N/A self clear_checkbox_name name N/A checkbox_id N/A N/A self clear_checkbox_id checkbox_name N/A checkbox_label N/A self clear_checkbox_label N/A checkbox N/A N/A N/A self checkbox render checkbox_name N/A value N/A self empty_value attrs N/A id checkbox_id N/A N/A mark_safe N/A N/A N/A self template format N/A conditional_escape wrapped N/A conditional_escape checkbox_id N/A conditional_escape checkbox_label N/A conditional_escape checkbox N/A value_from_datadict N/A N/A self data files name N/A N/A N/A 
        If the clear checkbox is checked returns the configured empty value,
        completely ignoring the original input.
         N/A clear N/A N/A N/A self checkbox value_from_datadict data files N/A N/A self clear_checkbox_name name N/A clear N/A N/A N/A self empty_value N/A N/A N/A N/A self widget value_from_datadict data files name N/A N/A N/A VERSION N/A 1 6 N/A _has_changed N/A N/A self initial data N/A N/A N/A 
            Widget implementation equates ``None``s with empty strings.
             N/A N/A N/A N/A initial None N/A data None N/A N/A initial None N/A data None N/A N/A True N/A N/A N/A N/A self widget _has_changed initial data N/A clear_checkbox_name N/A N/A self name N/A N/A N/A 
        Given the name of the input, returns the name of the clear checkbox.
         N/A N/A name -clear N/A clear_checkbox_id N/A N/A self name N/A N/A N/A 
        Given the name of the clear checkbox input, returns the HTML id for it.
         N/A N/A name _id N/A N/A