From 30d2c9b5375bd6bfd966ade2c5c4426b90fcd161 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 3 Aug 2026 10:56:21 -0400 Subject: [PATCH] Fixes #22854: Set USE_SHADOW_DOM=False to fix GraphiQL queries w/debug enabled --- netbox/netbox/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index f334a73a7..1f7a92764 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -634,6 +634,10 @@ SERIALIZATION_MODULES = { DEBUG_TOOLBAR_CONFIG = { 'SHOW_TOOLBAR_CALLBACK': 'utilities.debug.show_toolbar', + # The GraphiQL integration provided by strawberry-django locates the toolbar via + # document.getElementById('djDebug'), which fails when the toolbar is rendered inside a + # shadow root (the default as of django-debug-toolbar v7.0). + 'USE_SHADOW_DOM': False, }