takahe/core/context.py
2022-11-16 17:23:46 -07:00

10 lines
242 B
Python

from core.models import Config
def config_context(request):
return {
"config": Config.load_system(),
"config_identity": (
Config.load_identity(request.identity) if request.identity else None
),
}