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
| Name | Type | Description |
|---|---|---|
| setting | string | The name of the Django setting that was changed, used to determine if a cache reset is necessary. |
| **kwargs | dict | Additional keyword arguments passed by the Django setting_changed signal dispatcher. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; this function performs a cache invalidation side effect. |