diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f4962a37e7ca20766790af902196cc466ba9574b..b8edc13c13aa3b760eecf77254c689b85cc3fcec 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -37,6 +37,7 @@ Fixed * Retry button on error 500 page did not trigger a reload of the page. * When the Celery worker wasn't able to execute all tasks in time, notifications were sent multiple times. * Changing the maintenance mode state spawned another SPA instance in the iframe +* Phone numbers couldn't be in regional format. `3.0b3`_ - 2023-03-19 --------------------- diff --git a/aleksis/core/settings.py b/aleksis/core/settings.py index 060328efd353c63c61f10e2e87a0487877a55ba8..33a275696bdfe462801a80c6f1bf6e1443235e1b 100644 --- a/aleksis/core/settings.py +++ b/aleksis/core/settings.py @@ -14,6 +14,7 @@ from .util.core_helpers import ( get_app_settings_overrides, merge_app_settings, monkey_patch, + lazy_preference, ) monkey_patch() @@ -555,6 +556,8 @@ LANGUAGE_CODE = _settings.get("l10n.lang", "en") TIME_ZONE = _settings.get("l10n.tz", "UTC") USE_TZ = True +PHONENUMBER_DEFAULT_REGION = lazy_preference("internationalisation", "phone_number_country") + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.1/howto/static-files/