We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76f7d50 commit 3a62439Copy full SHA for 3a62439
graphiql_debug_toolbar/middleware.py
@@ -4,10 +4,17 @@
4
from django.template.loader import render_to_string
5
from django.utils.encoding import force_str
6
7
-from debug_toolbar.middleware import _HTML_TYPES
+from graphene_django.views import GraphQLView
8
+
9
+import debug_toolbar
10
11
+if debug_toolbar.VERSION < "4.4.6":
12
+ from debug_toolbar.middleware import _HTML_TYPES
13
+else:
14
+ from debug_toolbar.utils import _HTML_TYPES
15
16
from debug_toolbar.middleware import DebugToolbarMiddleware as BaseMiddleware
17
from debug_toolbar.toolbar import DebugToolbar
-from graphene_django.views import GraphQLView
18
19
from .serializers import CallableJSONEncoder
20
0 commit comments