in airavata_django_portal_commons/dynamic_apps/context_processors.py [0:0]
def custom_app_registry(request):
"""Put custom Django apps into the context."""
custom_apps = dynamic_apps.CUSTOM_DJANGO_APPS.copy()
custom_apps = [
_enhance_custom_app_config(app)
for app in custom_apps
if (getattr(app, "enabled", None) is None or app.enabled(request))
]
custom_apps.sort(key=lambda app: app.verbose_name.lower())
current_custom_app = _get_current_app(request, custom_apps)
return {
# 'custom_apps': list(map(_app_to_dict, custom_apps)),
"custom_apps": custom_apps,
"current_custom_app": current_custom_app,
"custom_app_nav": (
_get_app_nav(request, current_custom_app) if current_custom_app else None
),
}