Features: 1) Add import for defaultdict in detail.py.

Fixes: 1) Update `CONSTANCE_CONFIG_FIELDSETS` to use `OrderedDict`.

Extra: 1) Minor formatting adjustment in `constance.py`.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-07-18 09:56:30 +03:00
parent 67c18fc8d2
commit f25efd5c41
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
import logging
from collections import defaultdict
from contextlib import suppress
from typing import Collection, Any

View file

@ -50,7 +50,7 @@ CONSTANCE_CONFIG = OrderedDict(
]
)
CONSTANCE_CONFIG_FIELDSETS = {
CONSTANCE_CONFIG_FIELDSETS = OrderedDict({
gettext_noop("General Options"): (
"PROJECT_NAME",
"FRONTEND_DOMAIN",
@ -86,7 +86,7 @@ CONSTANCE_CONFIG_FIELDSETS = {
"ADVERTISEMENT_DATA",
"ANALYTICS_DATA",
),
}
})
EXPOSABLE_KEYS = [
"PROJECT_NAME",