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

@ -118,6 +118,8 @@ class Tag(ABIDModel):
def api_docs_url(self) -> str:
return '/api/v1/docs#/Core%20Models/api_v1_core_get_tag'
class SnapshotTag(models.Model):
id = models.AutoField(primary_key=True)

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'''