Skip to main content

localize_settings_changed

Resets the format cache when specific localization settings, such as format settings or the thousand separator toggle, are modified.

def localize_settings_changed(
setting: string,
**kwargs: dict
) - > null

Resets the internal format cache when localization-related Django settings are modified to ensure subsequent formatting operations use updated configuration.

Parameters

NameTypeDescription
settingstringThe name of the Django setting that was changed, used to determine if a cache reset is necessary.
**kwargsdictAdditional keyword arguments passed by the Django setting_changed signal dispatcher.

Returns

TypeDescription
nullNothing is returned; this function performs a cache invalidation side effect.