def ajax_editable_boolean(attr, short_description):
def _fn(self, item):<EOL><INDENT>return ajax_editable_boolean_cell(item, attr)<EOL><DEDENT>_fn.allow_tags = True<EOL>_fn.short_description = short_description<EOL>_fn.editable_boolean_field = attr<EOL>return _fn<EOL>
Convenience function: Assign the return value of this method to a variable
of your ModelAdmin class and put the variable name into list_display.

Example::

    class MyTreeEditor(TreeEditor):
        list_display = ('__unicode__', 'active_toggle')

        active_toggle = ajax_editable_boolean('active', _('is active'))