Closed ldynia closed 2 months ago
Hi
Sorry for breaking strawberry-django. However, they relied on an internal attribute of the toolbar which isn't documented and which obviously is private (the name starts with an underscore).
You could add something like this to your code as a temporary workaround and ensure that this runs before strawberry-django is imported:
from debug_toolbar import middleware, utils
middleware._HTML_TYPES = utils._HTML_TYPES
That's as terrible as it looks, but it will allow you to use the newest version of the toolbar.
Closing this because https://github.com/strawberry-graphql/strawberry-django/issues/586 has addressed it.