import decimal # Define DecimalField properties, used to represent amounts of money. AMOUNT_MAX_DIGITS=10 AMOUNT_DECIMALS=2 decimal.getcontext().prec = AMOUNT_DECIMALS