from django import template
register = template.Library()


@register.filter(name='yesno')
def handle_yes_no_from_boolean(value):
    print('************', value)
    if value:
        return 'Yes'
    return 'No'

a13a2a50e8c19a080cc2e7b5cdbaf5ae5abd01ef
<mask token>

<mask token>


@register.filter(name='yesno')
def handle_yes_no_from_boolean(value):
    print('************', value)
    if value:
        return 'Yes'
    return 'No'

<mask token>
register = template.Library()


@register.filter(name='yesno')
def handle_yes_no_from_boolean(value):
    print('************', value)
    if value:
        return 'Yes'
    return 'No'

from django import template
register = template.Library()


@register.filter(name='yesno')
def handle_yes_no_from_boolean(value):
    print('************', value)
    if value:
        return 'Yes'
    return 'No'
