Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 910 Bytes

index.rst

File metadata and controls

46 lines (28 loc) · 910 Bytes

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:

:pyAmountField.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.

:pyAmountField.min_value

The minimum amount that can be accepted.

:pyAmountField.max_value

The maximum amount that can be accepted.