Skip to content

angee.money.apps

Django config for the Angee money addon.

Money uses ready() for the process-local reference-currency settings check. Its value field registers its GraphQL scalar at field-module import.

MoneyConfig

python
class MoneyConfig(AppConfig)

Source app manifest for the Angee money addon.

ready

python
def ready() -> None

Register money-owned process hooks after app population.

check_reference_currency_setting

python
def check_reference_currency_setting(
        app_configs: Sequence[AppConfig] | None,
        **kwargs: object) -> list[checks.CheckMessage]

Warn when the required reference currency setting is unset.

A Warning, not an Error, by design: the reference currency is only needed once a project converts between currencies, so a single-currency install is legitimately usable before the setting is chosen. An Error would break migrate / schema --check for every such install; the hard gate lives where conversion actually happens (:func:~angee.money.models.reference_currency_code raises ImproperlyConfigured from the rate manager). This check makes the pending choice visible without blocking the build.

Released under the AGPL-3.0 License.