From 44af0d4c59eed1c3715e9044e75c159cfddf54cc Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 16 Nov 2022 17:23:46 -0700 Subject: Add start of a settings (config) system --- core/context.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'core/context.py') diff --git a/core/context.py b/core/context.py index 17617b9..4346cbb 100644 --- a/core/context.py +++ b/core/context.py @@ -1,7 +1,10 @@ -from core.config import Config +from core.models import Config def config_context(request): return { - "config": Config.load(), + "config": Config.load_system(), + "config_identity": ( + Config.load_identity(request.identity) if request.identity else None + ), } -- cgit v1.2.3