summaryrefslogtreecommitdiffstats
path: root/core/context.py
blob: 876c643250a769ebe5308a9e74ea0fa04f8294ca (plain)
1
2
3
4
5
6
7
8
9
10
11
from core.models import Config


def config_context(request):
    return {
        "config": Config.system,
        "config_identity": (
            request.identity.config_identity if request.identity else None
        ),
        "top_section": request.path.strip("/").split("/")[0],
    }