Currency and Money Values¶
Fields and data types that handle money values.
|todo:||This section is in progress|
Combines an value and a Currency to represent a monetary amount.
Defines a currency and maintains metadata about the currency.
class AmountField([allowed_currencies=None, min_value=None, max_value=None, **options])
AmountField has three extra arguments:
- The currencies that can be accepted by this field, value is enforced Odin’s validation. If
Noneis supplied any currency is acceptable.
- The minimum amount that can be accepted.
- The maximum amount that can be accepted.