Release v0.1.16
Module Package Release / publish-packages (push) Successful in 12s

This commit is contained in:
2026-08-05 19:51:58 +02:00
parent 57e2a34c89
commit 3842987a4e
8 changed files with 40 additions and 14 deletions
+4 -1
View File
@@ -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
+2 -1
View File
@@ -6,6 +6,7 @@ from typing import Any, Literal
from pydantic import BaseModel, ConfigDict, Field
from govoplan_core.api.v1.schemas import DeltaDeletedItem
from govoplan_core.i18n import REFERENCE_LANGUAGE_CODE
from govoplan_core.privacy.schemas import PrivacyRetentionPolicyItem
@@ -40,7 +41,7 @@ class AdminOverviewResponse(BaseModel):
class SystemSettingsItem(BaseModel):
default_locale: str = "en"
default_locale: str = REFERENCE_LANGUAGE_CODE
allow_tenant_custom_groups: bool = True
allow_tenant_custom_roles: bool = True
allow_tenant_api_keys: bool = True