Currency and Money Values

Fields and data types that handle money values.

todo:

This section is in progress

Datatypes

Amount

Combines an value and a Currency to represent a monetary amount.

Currency

Defines a currency and maintains metadata about the currency.

Fields

AmountField

class AmountField([allowed_currencies=None, min_value=None, max_value=None, **options])

An amount.

AmountField has three extra arguments:

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.

AmountField.min_value

The minimum amount that can be accepted.

AmountField.max_value

The maximum amount that can be accepted.