from django import template
from django.contrib.humanize.templatetags.humanize import intcomma
register = template.Library()


@register.filter
def moeda(valor):
    if valor != None:
        import locale
        locale.setlocale(locale.LC_ALL, '')
        return locale.currency(valor, grouping=True)
    return ''

ae895fcba15b5e1424584efac1029dce53a2a27a
<mask token>

<mask token>


@register.filter
def moeda(valor):
    if valor != None:
        import locale
        locale.setlocale(locale.LC_ALL, '')
        return locale.currency(valor, grouping=True)
    return ''

<mask token>
register = template.Library()


@register.filter
def moeda(valor):
    if valor != None:
        import locale
        locale.setlocale(locale.LC_ALL, '')
        return locale.currency(valor, grouping=True)
    return ''

from django import template
from django.contrib.humanize.templatetags.humanize import intcomma
register = template.Library()


@register.filter
def moeda(valor):
    if valor != None:
        import locale
        locale.setlocale(locale.LC_ALL, '')
        return locale.currency(valor, grouping=True)
    return ''
