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
class MoneyConfig(AppConfig)Source app manifest for the Angee money addon.
ready
def ready() -> NoneRegister money-owned process hooks after app population.
check_reference_currency_setting
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.