fix Admin data view for Config to render both sections and individual values

This commit is contained in:
Nick Sweeting 2024-10-14 17:39:14 -07:00
parent 1d7f0ab20d
commit 59b669691f
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -613,7 +613,7 @@ def live_config_value_view(request: HttpRequest, key: str, **kwargs) -> ItemCont
"fields": {
'Key': key,
'Type': find_config_type(key),
'Value': settings.FLAT_CONFIG[key] if key_is_safe(key) else '********',
'Value': settings.FLAT_CONFIG.get(key, settings.CONFIGS.get(key, None)) if key_is_safe(key) else '********',
},
"help_texts": {
'Key': mark_safe(f'''