def render_status(model, *args, **kwargs):
    """Render level as label"""
    mapping = {(10): 'warning', (50): 'success', (99): 'danger'}
    return '<span class="label label-{}">{}</span>'.format(mapping.get(
        model.status, 'info'), model.get_status_display().upper())
