Source code for bits.currency
"""
Currency related utilites.
"""
#
# External module elements
#
# 1. `currency` and `currency2`
# template filters located in `bits.templatetags.currency`
#
###############################################################################
## Imports
###############################################################################
# Django
from django.conf import settings
from django.contrib.humanize.templatetags.humanize import intcomma
from django.db import models
# Extenal
if 'south' in settings.INSTALLED_APPS:
from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ["^bits\.currency\.CurrencyField"])
###############################################################################
## Fields
###############################################################################
[docs]class CurrencyField(models.IntegerField):
"""Placeholder for CurrencyField. Add custom behaviour later. """
pass
###############################################################################
## Formatting
###############################################################################