This commit is contained in:
@@ -81,6 +81,7 @@ from govoplan_core.core.registry import PlatformRegistry
|
||||
from govoplan_core.core.runtime import get_registry
|
||||
from govoplan_core.db.session import get_session
|
||||
from govoplan_core.i18n import (
|
||||
REFERENCE_LANGUAGE_CODE,
|
||||
i18n_settings,
|
||||
normalize_enabled_language_codes,
|
||||
normalize_language_packages,
|
||||
@@ -1598,7 +1599,9 @@ def write_system_settings(
|
||||
available_languages,
|
||||
default_locale=payload.default_locale,
|
||||
)
|
||||
item.default_locale = payload.default_locale.strip() or "en"
|
||||
item.default_locale = (
|
||||
payload.default_locale.strip() or REFERENCE_LANGUAGE_CODE
|
||||
)
|
||||
item.allow_tenant_custom_groups = payload.allow_tenant_custom_groups
|
||||
item.allow_tenant_custom_roles = payload.allow_tenant_custom_roles
|
||||
item.allow_tenant_api_keys = payload.allow_tenant_api_keys
|
||||
|
||||
Reference in New Issue
Block a user