""" Context processors for adding tenant and system information to templates. """ from django.conf import settings def tenant_context(request): """ Add tenant information to template context. """ context = { 'current_tenant': getattr(request, 'tenant', None), 'hospital_settings': getattr(settings, 'HOSPITAL_SETTINGS', {}), } return context