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])
An amount.
AmountField has three extra arguments:
- :py
AmountField.allowed_currencies
The currencies that can be accepted by this field, value is enforced Odin’s validation. If
None
is supplied any currency is acceptable.- :py
AmountField.min_value
The minimum amount that can be accepted.
- :py
AmountField.max_value
The maximum amount that can be accepted.