summaryrefslogtreecommitdiff
path: root/postgresqleu/util/currency.py
blob: b712747524f29cb8616410b1ce2a1eeb3d8e31e4 (plain)
1
2
3
4
5
6
7
8
9
from django.conf import settings


# Format a currency value for proper display
def format_currency(value):
    return settings.CURRENCY_FORMAT.format(
        SYMBOL=settings.CURRENCY_SYMBOL,
        ABBREV=settings.CURRENCY_ABBREV,
        AMOUNT='{:.2f}'.format(value))