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})
Render a boolean value as icon.
dataset/ETHPy150Open pydanny/django-admin2/djadmin2/renderers.py/boolean_renderer