소스 검색

Fixes #22854: Set `USE_SHADOW_DOM=False` to fix GraphiQL queries w/debug enabled (#22855)

Jeremy Stretch 1 일 전
부모
커밋
6047ce1a37
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      netbox/netbox/settings.py

+ 4 - 0
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,
 }