(value, field)
return render_to_string(tpl, {'value': value})
Render a boolean value as icon.

    This uses the template ``renderers/boolean.html``.

    :param value: The value to process.
    :type value: boolean
    :param field: The model field instance
    :type field: django.db.models.fields.Field
    :rtype: unicode
Render a boolean value as icon.
Render a boolean value as icon .
def boolean_renderer(value, field):
    """
    Render a boolean value as icon.

    This uses the template ``renderers/boolean.html``.

    :param value: The value to process.
    :type value: boolean
    :param field: The model field instance
    :type field: django.db.models.fields.Field
    :rtype: unicode

    """
    # TODO caching of template
    tpl = os.path.join(settings.ADMIN2_THEME_DIRECTORY, 'renderers/boolean.html')
    return render_to_string(tpl, {'value': value})
def boolean_renderer ( value , field ) : # TODO caching of template tpl = os . path . join ( settings . ADMIN2_THEME_DIRECTORY , 'renderers/boolean.html' ) return render_to_string ( tpl , { 'value' : value } )