2020-10-11 22:32:08 +02:00
|
|
|
|
2020-05-08 11:13:11 +02:00
|
|
|
import decimal
|
2020-05-08 10:56:03 +02:00
|
|
|
|
|
|
|
# Define DecimalField properties, used to represent amounts of money.
|
|
|
|
AMOUNT_MAX_DIGITS=10
|
|
|
|
AMOUNT_DECIMALS=2
|
|
|
|
|
2020-05-08 11:13:11 +02:00
|
|
|
decimal.getcontext().prec = AMOUNT_DECIMALS
|