hospital-management/core/context_processors.py
2025-08-12 13:33:25 +03:00

19 lines
391 B
Python

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