from django import template
register = template.Library()


def str2int(value):
    if value.__len__() > 0:
        return int(value)
    else:
        return 0


@register.filter(name='int2str')
def int2str(value):
    return str(value)


register.filter('str2int', str2int)

e243acc6a3f48a7271b6cbc6ef2289538945890f
<mask token>


def str2int(value):
    if value.__len__() > 0:
        return int(value)
    else:
        return 0


@register.filter(name='int2str')
def int2str(value):
    return str(value)


<mask token>

<mask token>


def str2int(value):
    if value.__len__() > 0:
        return int(value)
    else:
        return 0


@register.filter(name='int2str')
def int2str(value):
    return str(value)


register.filter('str2int', str2int)

<mask token>
register = template.Library()


def str2int(value):
    if value.__len__() > 0:
        return int(value)
    else:
        return 0


@register.filter(name='int2str')
def int2str(value):
    return str(value)


register.filter('str2int', str2int)

from django import template
register = template.Library()


def str2int(value):
    if value.__len__() > 0:
        return int(value)
    else:
        return 0


@register.filter(name='int2str')
def int2str(value):
    return str(value)


register.filter('str2int', str2int)
